D'Oh./bin/gonic -music-path /media/datos/Música/ Fix attachments..

This commit is contained in:
Matias De lellis
2020-09-19 21:43:42 -03:00
parent 94ad25d6fb
commit c25964544c

View File

@@ -245,7 +245,7 @@ class NoteService {
$dbAttachts = $this->attachMapper->findFromNote($userId, $id);
foreach ($dbAttachts as $dbAttach) {
$delete = true;
foreach ($attachts as $attach) {
foreach ($attachments as $attach) {
if ($dbAttach->getFileId() === $attach['file_id']) {
$delete = false;
break;