I have a function that takes inputs and depending on those inputs executes different methods. No matter what I set path1 to, it always returns the same value, which is whatever the value of path1 was when the server function was first executed.
For example, in the attachment - res.send(path1) always returns 63ac838005209fd1b692", even if i change path1 in the createExecution command.
This is resulting in the incorrect method being fired, as each method refers to a different database.
I have tried redeploying the function so am quite stumped as to what is happening.
You should be using req.variables rather than process.env. see https://appwrite.io/docs/functions#writingYourOwnFunction
Recommended threads
- Bug: Cloud Function On Schedule Didn't R...
Heya I have a cloud function with this cron `0 17 * * *` to run at 9AM PT every day. I have not touched this since I set it up, and it has been working fine s...
- functions
Code for function not being created in Github. Permissions are set correctly, repository is created, however no code is in the created repository. Just trying...
- Urgent help required - Could not resolve...
I upgraded my production environment to 1.8.0 but experienced issues with appwrite running out of worker threads. I downgraded back to 1.6.1 and restored the da...