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

Method UpdateChatDebugRun

coderd/database/dbauthz/dbauthz.go:6614–6623  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateChatDebugRunParams)

Source from the content-addressed store, hash-verified

6612}
6613
6614func (q *querier) UpdateChatDebugRun(ctx context.Context, arg database.UpdateChatDebugRunParams) (database.ChatDebugRun, error) {
6615 chat, err := q.db.GetChatByID(ctx, arg.ChatID)
6616 if err != nil {
6617 return database.ChatDebugRun{}, err
6618 }
6619 if err := q.authorizeContext(ctx, policy.ActionUpdate, chat); err != nil {
6620 return database.ChatDebugRun{}, err
6621 }
6622 return q.db.UpdateChatDebugRun(ctx, arg)
6623}
6624
6625func (q *querier) UpdateChatDebugStep(ctx context.Context, arg database.UpdateChatDebugStepParams) (database.ChatDebugStep, error) {
6626 chat, err := q.db.GetChatByID(ctx, arg.ChatID)

Callers

nothing calls this directly

Calls 3

authorizeContextMethod · 0.95
GetChatByIDMethod · 0.65
UpdateChatDebugRunMethod · 0.65

Tested by

no test coverage detected