(ctx context.Context, arg database.UpdateChatDebugRunParams)
| 6612 | } |
| 6613 | |
| 6614 | func (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 | |
| 6625 | func (q *querier) UpdateChatDebugStep(ctx context.Context, arg database.UpdateChatDebugStepParams) (database.ChatDebugStep, error) { |
| 6626 | chat, err := q.db.GetChatByID(ctx, arg.ChatID) |
nothing calls this directly
no test coverage detected