fix: don't override saved filters
This commit is contained in:
parent
10ded56f66
commit
beb4d07cf9
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue