mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 21:19:18 +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
|
||||
}
|
||||
|
||||
|
||||
@@ -174,7 +174,7 @@ export const MetadataInfo = ({ media }: MediaInfoProps) => {
|
||||
}
|
||||
|
||||
if (typeof exif.exposure === 'number' && exif.exposure !== 0) {
|
||||
exif.exposure = `1/${1 / exif.exposure}`
|
||||
exif.exposure = `1/${Math.round(1 / exif.exposure)}`
|
||||
}
|
||||
|
||||
const exposurePrograms = exposureProgramsLookup(t)
|
||||
|
||||
Reference in New Issue
Block a user