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

Method SelectUsageEventsForPublishing

coderd/database/dbauthz/dbauthz.go:6401–6407  ·  view source on GitHub ↗
(ctx context.Context, arg time.Time)

Source from the content-addressed store, hash-verified

6399}
6400
6401func (q *querier) SelectUsageEventsForPublishing(ctx context.Context, arg time.Time) ([]database.UsageEvent, error) {
6402 // ActionUpdate because we're updating the publish_started_at column.
6403 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceUsageEvent); err != nil {
6404 return nil, err
6405 }
6406 return q.db.SelectUsageEventsForPublishing(ctx, arg)
6407}
6408
6409func (q *querier) SoftDeleteChatMessageByID(ctx context.Context, id int64) error {
6410 msg, err := q.db.GetChatMessageByID(ctx, id)

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected