Backend: Fix typo in photo entity
This commit is contained in:
parent
7d98d200da
commit
128cdf4bac
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue