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

Method UpsertTemplateUsageStats

coderd/database/dbauthz/dbauthz.go:8329–8334  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

8327}
8328
8329func (q *querier) UpsertTemplateUsageStats(ctx context.Context) error {
8330 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceSystem); err != nil {
8331 return err
8332 }
8333 return q.db.UpsertTemplateUsageStats(ctx)
8334}
8335
8336func (q *querier) UpsertUserAIProviderKey(ctx context.Context, arg database.UpsertUserAIProviderKeyParams) (database.UserAiProviderKey, error) {
8337 u, err := q.db.GetUserByID(ctx, arg.UserID)

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected