I have this budget app and when I try generating a custom function to get the total balance of a user, I keep getting errors. So I want to fetch the data from my supabase database. I will share images of how they look like.
For a couple of days now I have not been able to resolve it. Can anyone help? I just want it to get me the user's total balance which will be from the user's income and expense amounts.