mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Support for assigning any image from a gallery as the cover (#5053)
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -890,6 +890,14 @@ func (qb *GalleryStore) UpdateImages(ctx context.Context, galleryID int, imageID
|
||||
return galleryRepository.images.replace(ctx, galleryID, imageIDs)
|
||||
}
|
||||
|
||||
func (qb *GalleryStore) SetCover(ctx context.Context, galleryID int, coverImageID int) error {
|
||||
return imageGalleriesTableMgr.setCover(ctx, coverImageID, galleryID)
|
||||
}
|
||||
|
||||
func (qb *GalleryStore) ResetCover(ctx context.Context, galleryID int) error {
|
||||
return imageGalleriesTableMgr.resetCover(ctx, galleryID)
|
||||
}
|
||||
|
||||
func (qb *GalleryStore) GetSceneIDs(ctx context.Context, id int) ([]int, error) {
|
||||
return galleryRepository.scenes.getIDs(ctx, id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user