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
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support 👋 I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...