fix torrent poster update on last poster delete #18

This commit is contained in:
ghost 2023-10-30 19:12:09 +02:00
parent 8742c91f9f
commit 99ea797699

View File

@ -1209,10 +1209,17 @@ class TorrentService
$torrent->setTorrentPosterId(
$torrentPoster->getId()
);
$this->entityManagerInterface->persist($torrent);
$this->entityManagerInterface->flush();
}
else
{
$torrent->setTorrentPosterId(
null
);
}
$this->entityManagerInterface->persist($torrent);
$this->entityManagerInterface->flush();
}
}