Rank 1: Thread
Hi, I have a function that needs triggering when a document is created inside of a particular collection.
how do I listen for the creation and trigger the function?
Votes
0
Replies
9
Participants
Unknown
Messages
10
Rank 1: Thread
Hi, I have a function that needs triggering when a document is created inside of a particular collection.
how do I listen for the creation and trigger the function?
Rank 1: Thread
I have deployed the function and if I set an event trigger to listen for the change, it works only once. then the event is removed
Admin
and you're not deploying it again?
Admin
what version are you on? I just tested and it looks like it stays for me...
Rank 1: Thread
CLI is 4.1.0
Rank 1: Thread
I added the event listener and tried with full admin access to any user and then tried function execution from client end and the permission roles also disappeared
Rank 1: Thread
so it actually gets removed when we redeploy 😠and I have been traumatized for the last 4 hours
Admin
You'll need to make sure it's in the appwrite.json
Admin
Events and permissions
Admin
It should be everything. Make sure everything is configured in your appwrite.json