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

Method UpsertChatUsageLimitConfig

coderd/database/dbauthz/dbauthz.go:8153–8158  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpsertChatUsageLimitConfigParams)

Source from the content-addressed store, hash-verified

8151}
8152
8153func (q *querier) UpsertChatUsageLimitConfig(ctx context.Context, arg database.UpsertChatUsageLimitConfigParams) (database.ChatUsageLimitConfig, error) {
8154 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {
8155 return database.ChatUsageLimitConfig{}, err
8156 }
8157 return q.db.UpsertChatUsageLimitConfig(ctx, arg)
8158}
8159
8160func (q *querier) UpsertChatUsageLimitGroupOverride(ctx context.Context, arg database.UpsertChatUsageLimitGroupOverrideParams) (database.UpsertChatUsageLimitGroupOverrideRow, error) {
8161 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected