I created an appwrite function which is scheduled to run daily. Using this function I reset the order number in my database to 0.
I see that some days this function runs successfully, some days it fails saying: AppwriteException: The current user is not authorized to perform the requested action. If this was the case wouldn't I get this error every time.
I am attaching the Appwrite function, failure message and success message. Could someone please help me with this?
Recommended threads
- What does it means
I am looking for Appwrite for migration, but i am confused with the term "Unlimited" in Pricing table of Documents . Kindly Let me know what does it ...
- Migration and Function glitch
I am trying to migrate from non pro appwrite project to pro appwrite project all my data but it's stuck in processing.
- Unable to signup to appwrite cloud
When attempting to create an online cloud account on appwrite.io, I get the following message : "This email address must already be in its canonical form. Pleas...