diff --git a/backend/src/services/schedule.js b/backend/src/services/schedule.js index 818ae50..d8113cc 100644 --- a/backend/src/services/schedule.js +++ b/backend/src/services/schedule.js @@ -86,6 +86,7 @@ export function formatSchedule(rawSchedule, members = []) { id: rawSchedule.id, title: rawSchedule.title, date: normalizeDate(rawSchedule.date), + datePrecision: rawSchedule.date_precision || 'day', time: rawSchedule.time || null, category: { id: rawSchedule.category_id, @@ -268,6 +269,7 @@ export async function getScheduleDetail(db, id, getXProfile = null) { id: s.id, title: s.title, date: normalizeDate(s.date), + datePrecision: s.date_precision || 'day', time: s.time || null, category: { id: s.category_id, @@ -470,6 +472,7 @@ const SCHEDULE_LIST_SQL = ` s.id, s.title, s.date, + s.date_precision, s.time, s.category_id, c.name as category_name,