(ctx context.Context, arg database.GetChatDebugRunsByChatIDParams)
| 2913 | } |
| 2914 | |
| 2915 | func (q *querier) GetChatDebugRunsByChatID(ctx context.Context, arg database.GetChatDebugRunsByChatIDParams) ([]database.ChatDebugRun, error) { |
| 2916 | chat, err := q.db.GetChatByID(ctx, arg.ChatID) |
| 2917 | if err != nil { |
| 2918 | return nil, err |
| 2919 | } |
| 2920 | if err := q.authorizeContext(ctx, policy.ActionRead, chat); err != nil { |
| 2921 | return nil, err |
| 2922 | } |
| 2923 | return q.db.GetChatDebugRunsByChatID(ctx, arg) |
| 2924 | } |
| 2925 | |
| 2926 | func (q *querier) GetChatDebugStepsByRunID(ctx context.Context, runID uuid.UUID) ([]database.ChatDebugStep, error) { |
| 2927 | run, err := q.db.GetChatDebugRunByID(ctx, runID) |
nothing calls this directly
no test coverage detected