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

Method UpdateChatDebugStep

coderd/database/dbauthz/dbauthz.go:6625–6634  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateChatDebugStepParams)

Source from the content-addressed store, hash-verified

6623}
6624
6625func (q *querier) UpdateChatDebugStep(ctx context.Context, arg database.UpdateChatDebugStepParams) (database.ChatDebugStep, error) {
6626 chat, err := q.db.GetChatByID(ctx, arg.ChatID)
6627 if err != nil {
6628 return database.ChatDebugStep{}, err
6629 }
6630 if err := q.authorizeContext(ctx, policy.ActionUpdate, chat); err != nil {
6631 return database.ChatDebugStep{}, err
6632 }
6633 return q.db.UpdateChatDebugStep(ctx, arg)
6634}
6635
6636func (q *querier) UpdateChatHeartbeats(ctx context.Context, arg database.UpdateChatHeartbeatsParams) ([]uuid.UUID, error) {
6637 // The batch heartbeat is a system-level operation filtered by

Callers

nothing calls this directly

Calls 3

authorizeContextMethod · 0.95
GetChatByIDMethod · 0.65
UpdateChatDebugStepMethod · 0.65

Tested by

no test coverage detected