Hi! The function is triggered, when there is 'databases..collections..documents.*.update' but I see that the function is being executed times. Do you know why?
That function will be executed anytime any document in any database and collection is being updated
- Document updated --> 2. Function executed BUT why 3 times at once?
What does the function do
Does it by any chance update any document
It creates a summary of all markdown files, that are existing in the db
Are you updating any document during that process
it actually replaces the image names with their URLs, after getting the md content
There you have it
Thanks!
[SOLVED] Problem with Event Trigger
why exactly is it being executed 3 times? Not 4 or more, for example 😄
Don't quote me on this but as far as I remember they have some measures in place to prevent infinite loop. Not totally sure tho
Problem with Event Trigger
Hi! Unfortunately, it is happening the same, when just adding new documents, not changing/updating them. Do you probably have any solution? (using Python)
Log the event string to see what event is causing it
Sorry for the stupid question (as a beginner), but how to do this?
Retrieve the event string from the header x-appwrite-event
Do you know how to extract headers in python functions?
Recommended threads
- AppwriteException - Transaction with the...
I am using "node-appwrite" module and I have successfully created transaction id but when passing it to tablesDB.createRow function with some other required dat...
- Files access permissions
Am I right in understanding that file access permissions have been disabled (or broken again), and that shared access can now only be organized via tokens? Or i...
- functions custom domain issues in self h...
I’m running self-hosted Appwrite (Docker) behind Traefik with Cloudflare proxy (Full/Strict). Main domain works: https://app.printa4.in Function subdomains fa...