This post is somewhat strange, I've spent hours and hours trying to figure out what the problem is with why my function ignores the entire appwrite part.
I'm making a stripe webhook that then updates a document of the user with some values.
The problem is that the function ignores the entire appwrite part, it is as if it did not exist, I don't understand what is happening.
The stripe part works fine but it's like the appwrite part is invisible code
Heres my code: https://pastebin.com/raw/MGUdMi5h
Also im using appwrite cloud and node-appwrite version 11.0.0
I also made sure that the .env files are correct. I attach an image of the log that I put after the userPlan, it should not be executed since inside the userPlan there is return res.json({}) 🤔
Because you're using then, that code doesn't execute right away...and then you return.
I highly suggest avoiding using then as it can be confusing and lead to deeply nested code
thanks Steven, I'll try that
Recommended threads
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...