Closed qvd808 closed 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.
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.
Create export/page.tsx and update api/export/route.ts