MCPcopy Index your code
hub / github.com/coder/coder / BatchUpdateWorkspaceLastUsedAt

Method BatchUpdateWorkspaceLastUsedAt

coderd/database/dbauthz/dbauthz.go:1691–1698  ·  view source on GitHub ↗
(ctx context.Context, arg database.BatchUpdateWorkspaceLastUsedAtParams)

Source from the content-addressed store, hash-verified

1689}
1690
1691func (q *querier) BatchUpdateWorkspaceLastUsedAt(ctx context.Context, arg database.BatchUpdateWorkspaceLastUsedAtParams) error {
1692 // Could be any workspace and checking auth to each workspace is overkill for
1693 // the purpose of this function.
1694 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceWorkspace.All()); err != nil {
1695 return err
1696 }
1697 return q.db.BatchUpdateWorkspaceLastUsedAt(ctx, arg)
1698}
1699
1700func (q *querier) BatchUpdateWorkspaceNextStartAt(ctx context.Context, arg database.BatchUpdateWorkspaceNextStartAtParams) error {
1701 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceWorkspace.All()); err != nil {

Callers

nothing calls this directly

Calls 3

authorizeContextMethod · 0.95
AllMethod · 0.80

Tested by

no test coverage detected