forked from DebaucheryLibrarian/traxxx
Deleting movie scene associations before deleting scenes.
This commit is contained in:
parent
2db0cab892
commit
7b482e6903
|
@ -146,6 +146,10 @@ async function deleteScenes(sceneIds) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
await knex('movies_scenes')
|
||||
.whereIn('release_id', sceneIds)
|
||||
.delete();
|
||||
|
||||
const deleteCount = await knex('releases')
|
||||
.whereIn('id', sceneIds)
|
||||
.delete();
|
||||
|
|
Loading…
Reference in New Issue