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;
|
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();
|
||||||
|
|
Loading…
Reference in New Issue