fix: INSERT IGNORE for ActiveRecallQuestion
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 44s

This commit is contained in:
wangdl 2026-06-19 22:38:10 +08:00
parent 616d7099ce
commit 6a044fe29b

View File

@ -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);