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.js
Git Settings:- Points at branch development
development
Build 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 messages
that I no longer have (old code, before refactor).
Some help?
Screenshots attached.
Recommended threads
- HTTP POST to function returning "No Appw...
Hi everyone, I’m running into an issue with my self-hosted Appwrite instance. I’ve set up my environment variables (APPWRITE_FUNCTION_PROJECT_ID, APPWRITE_FUNC...
- Can't add dart 3.5 runtime
Modified the `.env` to enable dart 3.5 runtime on my self-hosted instance but still can't find the runtime when creating a new function. I manually pulled the i...
- How to verify an user using AppWrite Fun...
I have seen similar questions but none whose solutions serve me. I have a function to verify a user with their secret and their id: https://blahblah.appwrite.gl...