Skip to content

chore: accept payload on workspace usage route #13544

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jun 14, 2024
Prev Previous commit
Next Next commit
comment
  • Loading branch information
f0ssel committed Jun 12, 2024
commit 8623ae4028dd97c3e6a1511a19eea72a55cda675
3 changes: 2 additions & 1 deletion coderd/workspaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,8 @@ func (api *API) postWorkspaceUsage(rw http.ResponseWriter, r *http.Request) {
case codersdk.UsageAppNameSSH:
stat.SessionCountSsh = 1
default:
// This means the app_name is not in the list of allowed app names.
// This means the app_name is in the codersdk.AllowedAppNames but not being
// handled by this switch statement.
httpapi.InternalServerError(rw, xerrors.Errorf("unknown app_name %q", req.AppName))
return
}
Expand Down
Loading