feat(question-bank): extend source options to include 'rag-ai' for AI-generated questions

This commit is contained in:
2026-04-09 17:20:43 -04:00
parent f2f9cef0e7
commit f74f94d005
4 changed files with 4 additions and 3 deletions
@@ -456,7 +456,7 @@ pub async fn list_questions(
"ai" => {
sqlx::query_as::<_, QuestionBank>(
&format!(
"SELECT {} FROM question_bank WHERE organization_id = $1 AND is_archived = false AND source = 'ai-generated' ORDER BY created_at DESC",
"SELECT {} FROM question_bank WHERE organization_id = $1 AND is_archived = false AND source IN ('ai-generated', 'rag-ai') ORDER BY created_at DESC",
QUESTION_BANK_SELECT_COLUMNS
)
)