Fix minor bugs
This commit is contained in:
parent
c10d011a19
commit
7f885fa63e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue