Skip to content

Commit 37e3324

Browse files
committed
fix maxime lettofet
1 parent d434961 commit 37e3324

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend/src/database/initdb/initChallenge.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ export const initChallenge = async () => {
1111
description: "Chalenge de réfrence pour les points gratuits",
1212
category : "Free",
1313
points: 0,
14-
created_by : "1"
14+
created_by : 1
1515
};
1616
const result = await db.insert(challengeSchema).values(challengeValues).onConflictDoNothing();
1717
}
18-
};
18+
};

backend/src/services/permanence.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ export const importPermanencesFromCSV = async (
426426
start_at: new Date(r.start_at),
427427
end_at: new Date(r.end_at),
428428
capacity: parseInt(r.capacity, 10),
429-
difficulty: r.difficulty,
429+
difficulty: parseInt(r.difficulty, 10),
430430
is_open: false,
431431

432432
}));

0 commit comments

Comments
 (0)