diff --git a/backend/src/services/schedule.js b/backend/src/services/schedule.js index a7699b6..e1ed19a 100644 --- a/backend/src/services/schedule.js +++ b/backend/src/services/schedule.js @@ -334,7 +334,7 @@ export async function getMonthlySchedules(db, year, month) { const birthdayDate = new Date(year, birthDate.getMonth(), birthDate.getDate()); schedules.push({ - id: `birthday-${member.id}`, + id: `birthday-${year}-${member.name_en.toLowerCase()}`, title: `HAPPY ${member.name_en} DAY`, date: birthdayDate.toISOString().split('T')[0], time: null, @@ -357,7 +357,7 @@ export async function getMonthlySchedules(db, year, month) { if (year === debutYear) { // 데뷔 당일 schedules.push({ - id: 'debut', + id: `debut-${year}`, title: '프로미스나인 데뷔', date: debutDate.toISOString().split('T')[0], time: null, @@ -369,7 +369,7 @@ export async function getMonthlySchedules(db, year, month) { } else { // N주년 schedules.push({ - id: `anniversary-${anniversaryYear}`, + id: `anniversary-${year}`, title: `프로미스나인 데뷔 ${anniversaryYear}주년`, date: debutDate.toISOString().split('T')[0], time: null,