fetchTrackersByOwnerName: fix parameter order

This commit is contained in:
Drew DeVault 2021-09-27 16:05:45 +02:00
parent ffe1c9b652
commit 4ff9d6d2af
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ func fetchTrackersByOwnerName(ctx context.Context) func(tuples [][2]string) ([]*
THEN ?
ELSE tr.default_access
END)`,
model.ACCESS_ALL, auser.UserID).
auser.UserID, model.ACCESS_ALL).
Where(sq.Or{
sq.Expr(`tr.owner_id = ?`, auser.UserID),
sq.Expr(`tr.visibility != 'PRIVATE'`),