mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 20:59:03 +00:00
Fix minor bugs
This commit is contained in:
@@ -69,6 +69,15 @@ func (r faceGroupResolver) ImageFaces(ctx context.Context, obj *models.FaceGroup
|
||||
return nil, err
|
||||
}
|
||||
|
||||
r.Database.Transaction(func(tx *gorm.DB) error {
|
||||
for i := range imageFaces {
|
||||
if err := imageFaces[i].Media.AfterFind(tx); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
||||
return imageFaces, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user