Skip to content

Commit 6e736ea

Browse files
committed
fix(coderd/database/dbmem): include a technical summary row on over-pagination
1 parent 70a694e commit 6e736ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/database/dbmem/dbmem.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10030,7 +10030,7 @@ func (q *FakeQuerier) GetAuthorizedWorkspaces(ctx context.Context, arg database.
1003010030

1003110031
if arg.Offset > 0 {
1003210032
if int(arg.Offset) > len(workspaces) {
10033-
return []database.GetWorkspacesRow{}, nil
10033+
return q.convertToWorkspaceRowsNoLock(ctx, []database.Workspace{}, int64(beforePageCount), arg.WithSummary), nil
1003410034
}
1003510035
workspaces = workspaces[arg.Offset:]
1003610036
}

0 commit comments

Comments
 (0)