When I create a new user, the ProcessNewUser (id,name) serverless Appwrite Function triggers.
It retrieves the user $id from the event payload (req.body).
It tries to create some default documents for that user.
This function used to work before some personal refactors, related with type-safety, maintainability and most importantly, new data models. Now, I did not expect to get the refactor just right first time around. However, whenever I create a new user and the function triggers, an old version of the code gets executed (tried multiple times over the last hour).
Entrypoint:
./dist/process-new-user/main.jsGit Settings:- Points at branch development
developmentBuild command: bun install && bun build ./functions/process-new-user/main.ts --outdir ./dist/process-new-user ;
Symptoms
- When doing commits to the repository to the development branch, I have noticed that builds are not triggered as they usually do
- When manually deploying, a new deployment is made, goes to status active, but when the functions executes it shows
Log messagesthat I no longer have (old code, before refactor).
Some help?
Screenshots attached.
Recommended threads
- 408 Timeout / Curl Error 7 in Executor w...
Hey everyone, I am losing my mind over a routing loop/timeout issue on a fresh self-hosted setup. I have a single Linux VPS (IP: 45.141.37.105) and one domain (...
- functions returning error 401 in local
I updated to 1.9.0, and the functions that used to work fine in 1.8.1 are now giving me a 401 error. I can't seem to find a solution. If anyone is running versi...
- router_deployment_not_found
I updated my function a few times and now i am getting the error: router_deployment_not_found I even reverted back to my original code but i am still getting th...