From beb4d07cf95fc25f7cc5f7471b46bdab49f95fe0 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 17 Aug 2022 17:03:01 +0200 Subject: [PATCH] fix: don't override saved filters --- pkg/migration/20220815200851.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/migration/20220815200851.go b/pkg/migration/20220815200851.go index 44aeff31..cd40c6d9 100644 --- a/pkg/migration/20220815200851.go +++ b/pkg/migration/20220815200851.go @@ -89,7 +89,9 @@ func init() { f["filters"] = string(filtersJSON) - _, err = tx.Where("id", f["id"]). + _, err = tx.Where("id = ?", f["id"]). + Cols("filters"). + NoAutoCondition(). Table("saved_filters"). Update(f) if err != nil {