fix: updating a list might remove its background

resolves #1039
This commit is contained in:
kolaente 2021-11-13 17:52:14 +01:00
parent 2ae1da473e
commit cf05de19b3
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
3 changed files with 106 additions and 89 deletions

View file

@ -300,7 +300,7 @@ func RemoveListBackground(c echo.Context) error {
list.BackgroundFileID = 0
list.BackgroundInformation = nil
err = list.Update(s, auth)
err = models.UpdateList(s, list, auth, true)
if err != nil {
return err
}