Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Commit 5961e74

Browse files
committed
2 parents d5a8f5d + e332951 commit 5961e74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/src/controllers/user.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const resolveExercise = async (req, res, next) => {
6363
log = await executeScarbTest(destinationFolder);
6464
}
6565

66-
await pool.query("INSERT INTO Resolutions (user_name, exercise_id) VALUES ($1, $2)", [
66+
await pool.query("INSERT INTO Resolutions (user_name, exercise_id) VALUES ($1, $2) ON CONFLICT (user_name, exercise_id) DO NOTHING", [
6767
user, exercise_id
6868
]);
6969

0 commit comments

Comments
 (0)