Skip to content

Commit 333d661

Browse files
committed
Fix linting errors and tests
1 parent 14ffd6b commit 333d661

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/workspaceagents.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ func (api *API) workspaceAgent(rw http.ResponseWriter, r *http.Request) {
6767

6868
var eg errgroup.Group
6969
eg.Go(func() (err error) {
70-
dbApps, err = api.Database.GetWorkspaceAppsByAgentID(ctx, workspaceAgent.ID)
70+
// nolint:gocritic // This is a system restricted operation.
71+
dbApps, err = api.Database.GetWorkspaceAppsByAgentID(dbauthz.AsSystemRestricted(ctx), workspaceAgent.ID)
7172
return err
7273
})
7374
eg.Go(func() (err error) {

0 commit comments

Comments
 (0)