This commit is contained in:
Cüneyt Şentürk
2022-10-31 15:29:45 +03:00
parent 94554a463e
commit 185becf1b7
3 changed files with 9 additions and 9 deletions

View File

@@ -34,7 +34,7 @@ class UpdateDocument extends Job implements ShouldUpdate
$this->model->attachMedia($media, 'attachment');
}
} elseif (!$this->request->file('attachment') && $this->model->attachment) {
} elseif (! $this->request->file('attachment') && $this->model->attachment) {
$this->deleteMediaModel($this->model, 'attachment', $this->request);
}