Fix error in trackers by ID query

This commit is contained in:
Drew DeVault 2021-06-17 12:35:43 -04:00
parent 9f4d75f42c
commit 1eb91e2ae1
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ func fetchTrackersByID(ctx context.Context) func(ids []int) ([]*model.Tracker, [
THEN ?
ELSE tr.default_user_perms
END)`,
model.ACCESS_ALL, auser.UserID).
auser.UserID, model.ACCESS_ALL).
Column(`ua.id`).
Where(sq.And{
sq.Expr(`tr.id = ANY(?)`, pq.Array(ids)),