Backend: Fix typo in photo entity

This commit is contained in:
Michael Mayer 2021-02-05 19:18:33 +01:00
parent 7d98d200da
commit 128cdf4bac

View file

@ -238,7 +238,7 @@ func (m *Photo) Save() error {
photoMutex.Lock()
defer photoMutex.Unlock()
if err := Save(m, "ID"); err == nil {
if err := Save(m, "ID"); err != nil {
return err
}