From bcd885673298d592af01ec907a747088321a756b Mon Sep 17 00:00:00 2001 From: RoccoSmit Date: Mon, 11 Nov 2024 11:14:17 +1100 Subject: [PATCH] fix: added missing " (#4119) Added missing " --- store/db/mysql/memo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/db/mysql/memo.go b/store/db/mysql/memo.go index 223d087d..db9ccba3 100644 --- a/store/db/mysql/memo.go +++ b/store/db/mysql/memo.go @@ -92,7 +92,7 @@ func (d *DB) ListMemos(ctx context.Context, find *store.FindMemo) ([]*store.Memo } if len(v.TagSearch) != 0 { for _, tag := range v.TagSearch { - where, args = append(where, "(JSON_CONTAINS(JSON_EXTRACT(`memo`.`payload`, '$.property.tags'), ?) OR JSON_CONTAINS(JSON_EXTRACT(`memo`.`payload`, '$.property.tags'), ?))"), append(args, fmt.Sprintf(`"%s"`, tag), fmt.Sprintf(`"%s/`, tag)) + where, args = append(where, "(JSON_CONTAINS(JSON_EXTRACT(`memo`.`payload`, '$.property.tags'), ?) OR JSON_CONTAINS(JSON_EXTRACT(`memo`.`payload`, '$.property.tags'), ?))"), append(args, fmt.Sprintf(`"%s"`, tag), fmt.Sprintf(`"%s/"`, tag)) } } if v.HasLink {