From b23ac6158156ac8217d8f326519e2123d891ef40 Mon Sep 17 00:00:00 2001 From: ThatMegamind <92563733+ThatMegamind@users.noreply.github.com> Date: Thu, 21 Mar 2024 15:07:28 -0700 Subject: [PATCH] 56 bug batch 1 (#62) * /season route now returns event id * missing comma --------- Co-authored-by: Alyssia Tan --- routes/publishedSchedule.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/publishedSchedule.js b/routes/publishedSchedule.js index a515f27..2e85ecb 100644 --- a/routes/publishedSchedule.js +++ b/routes/publishedSchedule.js @@ -160,6 +160,7 @@ publishedScheduleRouter.get('/season', async (req, res) => { ( SELECT PS.id, + PS.event_id, PS.day_id, D.id AS day_day_id, D.event_date, @@ -197,6 +198,7 @@ publishedScheduleRouter.get('/season', async (req, res) => { JSON_AGG( json_build_object ( 'id', seasonPS.id, + 'event_id', seasonPS.event_id, 'title', seasonPS.title, 'event_type', seasonPS.event_type, 'year', seasonPS.year, @@ -394,7 +396,7 @@ publishedScheduleRouter.put('/:id', async (req, res) => { start_time = COALESCE($5, start_time), end_time = COALESCE($6, end_time), cohort = COALESCE($7, cohort), - notes = COALESCE($8, notes) + notes = COALESCE($8, notes), created_on = COALESCE($9, created_on) WHERE id = $10