(ctx context.Context, updatedBefore database.FinalizeStaleChatDebugRowsParams)
| 2518 | } |
| 2519 | |
| 2520 | func (q *querier) FinalizeStaleChatDebugRows(ctx context.Context, updatedBefore database.FinalizeStaleChatDebugRowsParams) (database.FinalizeStaleChatDebugRowsRow, error) { |
| 2521 | // Background sweep operates across all chats. |
| 2522 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceChat); err != nil { |
| 2523 | return database.FinalizeStaleChatDebugRowsRow{}, err |
| 2524 | } |
| 2525 | return q.db.FinalizeStaleChatDebugRows(ctx, updatedBefore) |
| 2526 | } |
| 2527 | |
| 2528 | func (q *querier) FindMatchingPresetID(ctx context.Context, arg database.FindMatchingPresetIDParams) (uuid.UUID, error) { |
| 2529 | _, err := q.GetTemplateVersionByID(ctx, arg.TemplateVersionID) |
nothing calls this directly
no test coverage detected