1
Fork 0

Fix minor bugs

This commit is contained in:
viktorstrate 2021-04-17 17:28:16 +02:00
parent c10d011a19
commit 7f885fa63e
No known key found for this signature in database
GPG Key ID: 3F855605109C1E8A
2 changed files with 10 additions and 1 deletions

View File

@ -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
}

View File

@ -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)