Browse Source

fix torrent poster update on last poster delete #18

main
ghost 1 year ago
parent
commit
99ea797699
  1. 9
      src/Service/TorrentService.php

9
src/Service/TorrentService.php

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

Loading…
Cancel
Save