SFU-Blueprint / Pedals

Apache License 2.0
2 stars 0 forks source link

Export prototype #63

Closed qvd808 closed 2 months ago

qvd808 commented 2 months ago

Create export/page.tsx and update api/export/route.ts

dangminhduc1101 commented 2 months ago

Any reason why we use the supabase.rpc() function instead of the other supabase methods like we did in other routes? If not for a particular reason I think we should be consistent across calls.

qvd808 commented 2 months ago

I could not find a way on supabase to query sum of the hour since we need to sum on the hour. Another alternative way would be transfer the logic of taking the total of volunteer hour from the database to the react server we hosting.