mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Decouple galleries from scenes (#1057)
This commit is contained in:
@@ -17,11 +17,6 @@ import (
|
||||
func DestroyScene(scene *models.Scene, repo models.Repository) (func(), error) {
|
||||
qb := repo.Scene()
|
||||
mqb := repo.SceneMarker()
|
||||
gqb := repo.Gallery()
|
||||
|
||||
if err := gqb.ClearGalleryId(scene.ID); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
markers, err := mqb.FindBySceneID(scene.ID)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user