how restrict user to execute function only once or 3 times in a day.
You'll need to create some inner-logic for that. For example, you can create a collection with
- User ID,
- Number of execution
Then check if the user is reached is limit.
Then any night at midnight you can create a CRON function that will empty the collection, so it's ready for the next day.
any other way.
A more complex one would be to give any user permission upon login And, then remove it after N execution.
But this is to complex for that task.
I think the best way would be to run the function within the function.
Recommended threads
- Which flutter SDK version for Self Hoste...
Hi all, Is there a good way to figure out which version of flutter SDK and Dart SDK is current for latest available self-hosted 1.8.0 ? I know new features are...
- redirect_uri errors on flutter client
Hi all, I'm using the flutter client for my app to do appwrite auth and use the JWTs to send to my backend. When I try to sign in with SSO, I get this: https:/...
- Problem with getting rows from related t...
Hi, I migrated the Appwrite SDK to 1.8.0 and the package in my Flutter app to version ^20.3.2. I noticed one thing is different. Previously, when I got a JSON r...