From acf4e3aa18d1bed87b08d082644f8b253059d549 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 6 Jun 2024 21:50:30 +0200 Subject: [PATCH] fix(tasks): ambiguous column name error when fetching favorite tasks --- pkg/models/task_search.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/models/task_search.go b/pkg/models/task_search.go index b7b87b6fd..0b871f32f 100644 --- a/pkg/models/task_search.go +++ b/pkg/models/task_search.go @@ -255,7 +255,7 @@ func (d *dbTaskSearcher) Search(opts *taskSearchOptions) (tasks []*Task, totalCo builder.Eq{"kind": FavoriteKindTask}, )) - favoritesCond = builder.In("id", favCond) + favoritesCond = builder.In("tasks.id", favCond) } limit, start := getLimitFromPageIndex(opts.page, opts.perPage)