(ctx context.Context, arg database.GetChatUserPromptsByChatIDParams)
| 3250 | } |
| 3251 | |
| 3252 | func (q *querier) GetChatUserPromptsByChatID(ctx context.Context, arg database.GetChatUserPromptsByChatIDParams) ([]database.GetChatUserPromptsByChatIDRow, error) { |
| 3253 | // Authorize read on the parent chat. |
| 3254 | _, err := q.GetChatByID(ctx, arg.ChatID) |
| 3255 | if err != nil { |
| 3256 | return nil, err |
| 3257 | } |
| 3258 | return q.db.GetChatUserPromptsByChatID(ctx, arg) |
| 3259 | } |
| 3260 | |
| 3261 | func (q *querier) GetChatWorkspaceTTL(ctx context.Context) (string, error) { |
| 3262 | // The workspace-TTL setting is a deployment-wide value read by any |
nothing calls this directly
no test coverage detected