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

783 backend write a cron job to automatically update a google sheet with the members #791

Closed jeffplays2005 closed 3 weeks ago

jeffplays2005 commented 4 weeks ago

Still semi-draft...

*. Update dependencies in server workspace

[!Note] The logic is still somewhat rough and could have improvements. Quite a lot of duplicate code and possibly better ways to update the google sheet instead of just appending and clearing every time.

github-actions[bot] commented 4 weeks ago

Visit the preview URL for this PR (updated for commit 3cbb246):

https://uasc-ceebc--pr791-783-backend-write-a-qbsu1xfl.web.app

(expires Sat, 12 Oct 2024 10:31:27 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 36296ceaed1d43e92e7d5e81a72a7bd987560bfa

jeffplays2005 commented 3 weeks ago

Added some documentation in here:

https://github.com/UoaWDCC/uasc-web/wiki/Deployment-Information#google-sheet-members-action

jeffplays2005 commented 3 weeks ago

have you tested the function by running ts-node locally?

do we fetch all users and not check if they're members?

image
image
jeffplays2005 commented 3 weeks ago

For documentation in this branch:

Updated secrets

Screenshot 2024-10-05 at 11 31 35 PM