Skip to content

Commit

Permalink
Revert previous condition change
Browse files Browse the repository at this point in the history
  • Loading branch information
seancfong committed Feb 18, 2024
1 parent 7f5ea0a commit 00ecd80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/publishedSchedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ publishedScheduleRouter.get('/recently-added', async (req, res) => {
PS.created_on
FROM published_schedule PS
LEFT JOIN catalog C ON PS.event_id = C.id
WHERE PS.confirmed_on > current_date - 7
WHERE PS.created_on = PS.confirmed_on AND PS.created_on > current_date - 7 AND confirmed = true
ORDER BY created_on DESC;
`,
);
Expand Down Expand Up @@ -79,7 +79,7 @@ publishedScheduleRouter.get('/recently-confirmed', async (req, res) => {
PS.created_on
FROM published_schedule PS
LEFT JOIN catalog C ON PS.event_id = C.id
WHERE PS.created_on = PS.confirmed_on AND PS.created_on > current_date - 7 AND confirmed = true
WHERE PS.confirmed_on > current_date - 7
ORDER BY created_on DESC;
`,
);
Expand Down

0 comments on commit 00ecd80

Please sign in to comment.