
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
- Two steps signIn with one user:
'm using appwrite to try two phase login, step 1: await account.createAnonymousSession(); or final appwriteUser = await account.create( ...
- Registering new flutter app
Hi, ive got an already build flutter app which works in development with appwrite. but with the built version i get an error that the client is not registered. ...
- Appwrite messaging api error
```=== Push Notification Function Started === Endpoint: https://fra.cloud.appwrite.io/v1 Project: 6899062700398ffeae4f Database: threed-dating-db Notification f...
