mirror of
https://github.com/stashapp/stash.git
synced 2025-12-16 20:07:05 +03:00
Fix panic when deleting image with no files (#5328)
This commit is contained in:
@@ -528,7 +528,10 @@ func (qb *ImageStore) GetFiles(ctx context.Context, id int) ([]models.File, erro
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return files, nil
|
||||
ret := make([]models.File, len(files))
|
||||
copy(ret, files)
|
||||
|
||||
return ret, nil
|
||||
}
|
||||
|
||||
func (qb *ImageStore) GetManyFileIDs(ctx context.Context, ids []int) ([][]models.FileID, error) {
|
||||
|
||||
Reference in New Issue
Block a user