From 6a044fe29b3af6e98f76a2ba1af9bc8db5a5ef3b Mon Sep 17 00:00:00 2001 From: wangdl Date: Fri, 19 Jun 2026 22:38:10 +0800 Subject: [PATCH] fix: INSERT IGNORE for ActiveRecallQuestion --- test/m-ai-01-09-api-e2e.worker-int-spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/m-ai-01-09-api-e2e.worker-int-spec.ts b/test/m-ai-01-09-api-e2e.worker-int-spec.ts index dcd985a..b8dbada 100644 --- a/test/m-ai-01-09-api-e2e.worker-int-spec.ts +++ b/test/m-ai-01-09-api-e2e.worker-int-spec.ts @@ -40,7 +40,7 @@ beforeAll(async () => { await setupFixtures(DB_URL, TEST_USER, TEST_KB, TEST_KI, TEST_SESSION); // Create Active Recall Question for submit test await dbExec(DB_URL, - `INSERT INTO ActiveRecallQuestion (id, userId, questionText, createdBy, updatedAt) VALUES (?, ?, ?, 'ai', NOW())`, + `INSERT IGNORE INTO ActiveRecallQuestion (id, userId, questionText, createdBy, updatedAt) VALUES (?, ?, ?, 'ai', NOW())`, [`e2e-q-1`, TEST_USER, 'What is the capital of France?']); setRedisConfig(REDIS_HOST, parseInt(REDIS_PORT, 10), REDIS_PW || undefined);