fix(tasks): ambiguous column name error when fetching favorite tasks
This commit is contained in:
parent
92cdf5fe9c
commit
acf4e3aa18
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user