From 128cdf4bac5847597242f78654a151025dcda3fa Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Fri, 5 Feb 2021 19:18:33 +0100 Subject: [PATCH] Backend: Fix typo in photo entity --- internal/entity/photo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/entity/photo.go b/internal/entity/photo.go index 6b6787bba..c9630b3b5 100644 --- a/internal/entity/photo.go +++ b/internal/entity/photo.go @@ -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 }