Skip to content
Snippets Groups Projects
Commit 57bc299c authored by 조대희's avatar 조대희
Browse files

style: 스케줄 서비스 오타 변경 (#5)

parent cbd630dd
No related branches found
No related tags found
2 merge requests!31Develop,!6[#5] Schedule 서비스 로직 개발
......@@ -32,7 +32,7 @@ class schedulService {
throw new Error('Schedule overlaps with existing schedule');
}
const scehduleData = {
const scheduleData = {
user_id: userId,
title,
start_time,
......@@ -41,7 +41,7 @@ class schedulService {
expiry_date: is_fixed ? null : this.getNextMonday()
};
const schedule = await Schedule.create(scehduleData);
const schedule = await Schedule.create(scheduleData);
return schedule;
} catch (error) {
throw new Error(`Failed to create schedule: ${error.message}`);
......@@ -58,7 +58,7 @@ class schedulService {
});
if (!schedule) {
throw new Error('schedule not found');
throw new Error('Schedule not found');
}
// 일정 시작 시간 - 종료 시간 유효성 검사
......@@ -92,7 +92,7 @@ class schedulService {
});
if (!schedule) {
throw new Error('schedule not found');
throw new Error('Schedule not found');
}
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment