~sircmpwn/todo.sr.ht

1eb91e2ae1c0435a50fbcbdc742084105a29118a — Drew DeVault a month ago 9f4d75f 0.64.21
Fix error in trackers by ID query
1 files changed, 1 insertions(+), 1 deletions(-)

M api/loaders/middleware.go
M api/loaders/middleware.go => api/loaders/middleware.go +1 -1
@@ 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)),