Skip to content
Snippets Groups Projects
Commit b09087dc authored by Wo-ogie's avatar Wo-ogie
Browse files

fix: 스케줄 생성이 되지 않은 문제 수정

parent 44ba1e6c
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,7 @@ exports.createMySchedules = async (req, res, next) => { ...@@ -38,7 +38,7 @@ exports.createMySchedules = async (req, res, next) => {
const { schedules } = req.body; const { schedules } = req.body;
try { try {
await validateScheduleNotExist(participantId); await validateScheduleNotExist(participantId);
const createdSchedules = createSchedules(participantId, schedules); const createdSchedules = await createSchedules(participantId, schedules);
return res.json(SchedulesResponse.from(createdSchedules)); return res.json(SchedulesResponse.from(createdSchedules));
} catch (error) { } catch (error) {
return next(error); return next(error);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment