Skip to content

Commit

Permalink
Prevent duplicate events showing up based on attendee records
Browse files Browse the repository at this point in the history
  • Loading branch information
brundonsmith committed Apr 28, 2024
1 parent c950a78 commit c0a4805
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions back-end/routes/v1/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function register(router: Router) {
bookmarks: bigint
}
>`
SELECT
SELECT DISTINCT ON (event.event_id)
event.name,
event.description,
event.start_datetime,
Expand Down Expand Up @@ -63,7 +63,7 @@ export default function register(router: Router) {
account.email_address,
attendee.name
ORDER BY
event.start_datetime
event.event_id, event.start_datetime
`

return [
Expand Down

0 comments on commit c0a4805

Please sign in to comment.