API: improve precision of repository cursors

Otherwise we run into a problem when a lot of resources are created within the
same second-resolution Unix timestamp, such as when I just scripted a bunch of
repo creation to test pagination locally. Matches a similar approach taken for
git.sr.ht in ee7701a9.
1 files changed, 1 insertions(+), 1 deletions(-)

M api/graph/model/repository.go
M api/graph/model/repository.go +1 -1
@@ 122,7 122,7 @@ func (r *Repository) QueryWithCursor(ctx
 
 	if cur.Next != "" {
 		ts, _ := strconv.ParseInt(cur.Next, 10, 64)
-		updated := time.Unix(ts, 0)
+		updated := time.UnixMicro(ts).UTC()
 		q = q.Where(database.WithAlias(r.alias, "updated")+"<= ?", updated)
 	}
 	q = q.