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] Fix edit event endpoint to properly add timestamps #802

Closed bcho892 closed 1 week ago

bcho892 commented 3 weeks ago

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

Right now in server\src\service-layer\controllers\AdminController.ts the editEvent method does not properly parse the timestamps, see the following example:

        sign_up_start_date: new Timestamp(
          body.data.sign_up_start_date.seconds,
          body.data.sign_up_start_date.nanoseconds
        ),

is how it should be done

BEFORE MERGING