mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Fix to allow scene to be removed when attached to a movie (#421)
This commit is contained in:
@@ -138,6 +138,10 @@ func (qb *SceneQueryBuilder) ResetOCounter(id int, tx *sqlx.Tx) (int, error) {
|
||||
}
|
||||
|
||||
func (qb *SceneQueryBuilder) Destroy(id string, tx *sqlx.Tx) error {
|
||||
_, err := tx.Exec("DELETE FROM movies_scenes WHERE scene_id = ?", id)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return executeDeleteQuery("scenes", id, tx)
|
||||
}
|
||||
func (qb *SceneQueryBuilder) Find(id int) (*Scene, error) {
|
||||
|
||||
Reference in New Issue
Block a user