UoaWDCC / uasc-web

Project with the University of Auckland Snowsports Club Website & Booking System. Established in 2023.
https://uasc.co.nz
6 stars 2 forks source link

[BACKEND] Rewrite SSE endpoint to return a map of reservations per event id #786

Closed bcho892 closed 1 month ago

bcho892 commented 1 month ago

Is your feature request related to a problem? Please describe.

Right now in server\src\data-layer\services\EventService.ts we simply sum up all the total reservations. This may not be the most useful, instead we want the data returned in the format:

{
    "event_1": 200,
    "event_2": 20,
// Etc ...
}

So on the front end we can programatically match them with the relevant event.

BEFORE MERGING