實作創意題與資料庫整合

This commit is contained in:
2025-09-29 03:24:17 +08:00
parent aa34d2d078
commit a3b46b4430
18 changed files with 1366 additions and 30 deletions

View File

@@ -60,7 +60,7 @@ export async function findCreativeQuestionById(id: number): Promise<CreativeQues
// 獲取所有題目
export async function getAllCreativeQuestions(): Promise<CreativeQuestion[]> {
const query = 'SELECT * FROM creative_questions ORDER BY created_at'
return await executeQuery<CreativeQuestion[]>(query)
return await executeQuery<CreativeQuestion>(query)
}
// 清空所有題目