Skip to content

Commit

Permalink
56 bug batch 1 (#62)
Browse files Browse the repository at this point in the history
* /season route now returns event id

* missing comma

---------

Co-authored-by: Alyssia Tan <[email protected]>
  • Loading branch information
ThatMegamind and arralia authored Mar 21, 2024
1 parent 7095bad commit b23ac61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion routes/publishedSchedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b23ac61

Please sign in to comment.