
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
- What’s the current approach for always o...
Read that it’s not a thing out of the box, but what’s the possible setup here?
- Query.equal error
Hi guys. I'm using Appwrite Cloud, and I'm using version 21 of node-appwrite to benefit from transactions. The problem is I seem to be getting an error when I u...
- Appwrite messaging api error
```=== Push Notification Function Started === Endpoint: https://fra.cloud.appwrite.io/v1 Project: 6899062700398ffeae4f Database: threed-dating-db Notification f...
