fix: INSERT IGNORE for ActiveRecallQuestion
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 44s
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 44s
This commit is contained in:
parent
616d7099ce
commit
6a044fe29b
@ -40,7 +40,7 @@ beforeAll(async () => {
|
|||||||
await setupFixtures(DB_URL, TEST_USER, TEST_KB, TEST_KI, TEST_SESSION);
|
await setupFixtures(DB_URL, TEST_USER, TEST_KB, TEST_KI, TEST_SESSION);
|
||||||
// Create Active Recall Question for submit test
|
// Create Active Recall Question for submit test
|
||||||
await dbExec(DB_URL,
|
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?']);
|
[`e2e-q-1`, TEST_USER, 'What is the capital of France?']);
|
||||||
|
|
||||||
setRedisConfig(REDIS_HOST, parseInt(REDIS_PORT, 10), REDIS_PW || undefined);
|
setRedisConfig(REDIS_HOST, parseInt(REDIS_PORT, 10), REDIS_PW || undefined);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user