Indexer: Reset photo quality after merging

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-12-26 23:08:08 +01:00
parent e2d3055015
commit fd53d30caa

View file

@ -110,5 +110,11 @@ func (m *Photo) Merge(mergeMeta, mergeUuid bool) (original Photo, merged Photos,
m.PhotoQuality = -1
}
original.PhotoQuality = original.QualityScore()
if err := original.Save(); err != nil {
log.Errorf("photo: %s in %s (merge)", err, original.PhotoName)
}
return original, merged, err
}