fix: don't override saved filters

This commit is contained in:
kolaente 2022-08-17 17:03:01 +02:00
parent 10ded56f66
commit beb4d07cf9
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -89,7 +89,9 @@ func init() {
f["filters"] = string(filtersJSON) f["filters"] = string(filtersJSON)
_, err = tx.Where("id", f["id"]). _, err = tx.Where("id = ?", f["id"]).
Cols("filters").
NoAutoCondition().
Table("saved_filters"). Table("saved_filters").
Update(f) Update(f)
if err != nil { if err != nil {