Today's earnings function

Hello i am making an app in bubble.io and i am new here i am having a difficulty.
I want to make a function that shows the number of amount the user have earned today and it will become “0” the next day if the user hasn’t earned anything. I have created a data type “earnings” with fields “date”, “amount” and “user” .
How can i make it work?

Hey there!

Do a search for “earnings”. In the constraints make creation date >= current date/time rounded down to date.

Cheers!

1 Like

You can use api workflows to schedule a change to 0 the next day.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.