Skip to content

Commit

Permalink
minor fixes post-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatMegamind committed Feb 20, 2024
1 parent 062bfb6 commit 2bd47cd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions routes/publishedSchedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ publishedScheduleRouter.get('/recently-confirmed', async (req, res) => {
res.status(200).json(keysToCamel(recentConfirm));
} catch (err) {
res.status(400).send(err.message);
}
});

// GET /published-schedule/all-seasons - return all the seasons
publishedScheduleRouter.get('/all-seasons', async (req, res) => {
Expand Down Expand Up @@ -123,10 +125,10 @@ publishedScheduleRouter.get('/all-seasons', async (req, res) => {
try {
const allDatesResult = await db.query(
`
SELECT D.event_date
SELECT D.event_date
FROM
published_schedule AS PS, day AS D
WHERE
WHERE
D.id = PS.day_id
`,
);
Expand Down Expand Up @@ -357,7 +359,7 @@ publishedScheduleRouter.post('/', async (req, res) => {
endTime,
calculateYear(eventDate, cohort),
notes,
currDate
currDate,
],
);
res.status(201).json({
Expand Down Expand Up @@ -408,7 +410,7 @@ publishedScheduleRouter.put('/:id', async (req, res) => {
cohort = COALESCE($7, cohort),
notes = COALESCE($8, notes)
created_on = COALESCE($9, created_on)
WHERE id = $10
RETURNING *;
Expand Down

0 comments on commit 2bd47cd

Please sign in to comment.