Deleting movie scene associations before deleting scenes.

This commit is contained in:
DebaucheryLibrarian 2021-02-05 04:05:44 +01:00
parent 2db0cab892
commit 7b482e6903
1 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,10 @@ async function deleteScenes(sceneIds) {
return 0; return 0;
} }
await knex('movies_scenes')
.whereIn('release_id', sceneIds)
.delete();
const deleteCount = await knex('releases') const deleteCount = await knex('releases')
.whereIn('id', sceneIds) .whereIn('id', sceneIds)
.delete(); .delete();