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

Method FinalizeStaleChatDebugRows

coderd/database/dbauthz/dbauthz.go:2520–2526  ·  view source on GitHub ↗
(ctx context.Context, updatedBefore database.FinalizeStaleChatDebugRowsParams)

Source from the content-addressed store, hash-verified

2518}
2519
2520func (q *querier) FinalizeStaleChatDebugRows(ctx context.Context, updatedBefore database.FinalizeStaleChatDebugRowsParams) (database.FinalizeStaleChatDebugRowsRow, error) {
2521 // Background sweep operates across all chats.
2522 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceChat); err != nil {
2523 return database.FinalizeStaleChatDebugRowsRow{}, err
2524 }
2525 return q.db.FinalizeStaleChatDebugRows(ctx, updatedBefore)
2526}
2527
2528func (q *querier) FindMatchingPresetID(ctx context.Context, arg database.FindMatchingPresetIDParams) (uuid.UUID, error) {
2529 _, err := q.GetTemplateVersionByID(ctx, arg.TemplateVersionID)

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected