SFU-Blueprint / Pedals

Apache License 2.0
0 stars 0 forks source link

Export prototype #63

Closed qvd808 closed 1 month ago

qvd808 commented 1 month ago

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

dangminhduc1101 commented 1 month 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 1 month 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.