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

Method TouchChatDebugRunUpdatedAt

coderd/database/dbauthz/dbauthz.go:6467–6476  ·  view source on GitHub ↗
(ctx context.Context, arg database.TouchChatDebugRunUpdatedAtParams)

Source from the content-addressed store, hash-verified

6465}
6466
6467func (q *querier) TouchChatDebugRunUpdatedAt(ctx context.Context, arg database.TouchChatDebugRunUpdatedAtParams) error {
6468 chat, err := q.db.GetChatByID(ctx, arg.ChatID)
6469 if err != nil {
6470 return err
6471 }
6472 if err := q.authorizeContext(ctx, policy.ActionUpdate, chat); err != nil {
6473 return err
6474 }
6475 return q.db.TouchChatDebugRunUpdatedAt(ctx, arg)
6476}
6477
6478func (q *querier) TouchChatDebugStepAndRun(ctx context.Context, arg database.TouchChatDebugStepAndRunParams) error {
6479 chat, err := q.db.GetChatByID(ctx, arg.ChatID)

Callers

nothing calls this directly

Calls 3

authorizeContextMethod · 0.95
GetChatByIDMethod · 0.65

Tested by

no test coverage detected