Skip to content

Commit ff11554

Browse files
committed
gen
1 parent 18952f4 commit ff11554

File tree

8 files changed

+39
-37
lines changed

8 files changed

+39
-37
lines changed

coderd/apidoc/docs.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/workspaceagents.go

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

6868
var eg errgroup.Group
6969
eg.Go(func() (err error) {
70-
// nolint:gocritic // This is a system restricted operation.
71-
dbApps, err = api.Database.GetWorkspaceAppsByAgentID(dbauthz.AsSystemRestricted(ctx), workspaceAgent.ID)
70+
dbApps, err = api.Database.GetWorkspaceAppsByAgentID(ctx, workspaceAgent.ID)
7271
return err
7372
})
7473
eg.Go(func() (err error) {
@@ -98,7 +97,8 @@ func (api *API) workspaceAgent(rw http.ResponseWriter, r *http.Request) {
9897
for _, app := range dbApps {
9998
appIDs = append(appIDs, app.ID)
10099
}
101-
statuses, err := api.Database.GetWorkspaceAppStatusesByAppIDs(ctx, appIDs)
100+
// nolint:gocritic // This is a system restricted operation.
101+
statuses, err := api.Database.GetWorkspaceAppStatusesByAppIDs(dbauthz.AsSystemRestricted(ctx), appIDs)
102102
if err != nil {
103103
httpapi.Write(ctx, rw, http.StatusInternalServerError, codersdk.Response{
104104
Message: "Internal error fetching workspace app statuses.",

docs/reference/api/agents.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/api/builds.md

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/api/schemas.md

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)