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

Method TouchChatDebugStepAndRun

coderd/database/dbauthz/dbauthz.go:6478–6487  ·  view source on GitHub ↗
(ctx context.Context, arg database.TouchChatDebugStepAndRunParams)

Source from the content-addressed store, hash-verified

6476}
6477
6478func (q *querier) TouchChatDebugStepAndRun(ctx context.Context, arg database.TouchChatDebugStepAndRunParams) error {
6479 chat, err := q.db.GetChatByID(ctx, arg.ChatID)
6480 if err != nil {
6481 return err
6482 }
6483 if err := q.authorizeContext(ctx, policy.ActionUpdate, chat); err != nil {
6484 return err
6485 }
6486 return q.db.TouchChatDebugStepAndRun(ctx, arg)
6487}
6488
6489func (q *querier) TryAcquireLock(ctx context.Context, id int64) (bool, error) {
6490 return q.db.TryAcquireLock(ctx, id)

Callers

nothing calls this directly

Calls 3

authorizeContextMethod · 0.95
GetChatByIDMethod · 0.65

Tested by

no test coverage detected