~sircmpwn/todo.sr.ht

c69656bbe2b5e63d982acd3d13bec234dcbac4b6 — Drew DeVault 4 months ago fc40d2a 0.64.12
API: trackers: fix cursor
1 files changed, 1 insertions(+), 1 deletions(-)

M api/graph/model/tracker.go
M api/graph/model/tracker.go => api/graph/model/tracker.go +1 -1
@@ 85,7 85,7 @@ func (t *Tracker) QueryWithCursor(ctx context.Context, runner sq.BaseRunner,
	}
	auser := auth.ForContext(ctx)
	q = q.
		OrderBy(database.WithAlias(t.alias, "id")).
		OrderBy(database.WithAlias(t.alias, "id") + " DESC").
		Limit(uint64(cur.Count + 1)).
		LeftJoin(`user_access tr_ua ON tr_ua.tracker_id = tr.id`).
		Column(`COALESCE(