fix: 특수 일정 ID에 연도 포함

- 생일: birthday-{year}-{name_en} (예: birthday-2025-saerom)
- 데뷔: debut-{year} (예: debut-2018)
- 주년: anniversary-{year} (예: anniversary-2026)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
caadiq 2026-01-25 13:05:45 +09:00
parent f8c73c5a0a
commit e1ee0b47a0

View file

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