I am using a cloud function to edit a document when it gets triggered by stripe, the error and code I use is bellow:
TypeScript
at AppwriteService.createSubscription (file:///usr/local/server/src/function/src/appwrite.js:45:26)
at Module.default (file:///usr/local/server/src/function/src/main.js:71:24)
at execute (/usr/local/server/src/server.js:141:48)
at async /usr/local/server/src/server.js:158:13```
TL;DR
Developers are experiencing an issue with updating a document due to a typo in the constructor. The error message indicates a `TypeError` related to `updateDocument` being undefined. The issue is likely located in the `createSubscription` function in the `appwrite.js` file. Check the code to ensure correct spelling and reference if the function is properly defined.You have a typo in your constructor
this.databses
Recommended threads
- Firebase app import
I'm **very** new to appwrite and I just set up appwrite with docker and I'm trying to import a Firebase app I have set up but it's erroring and I don't really k...
- Console infinite loading behind NginxPro...
Hi All, I am trying to get AppWrite to work behind NPM. I've followed the Medium guide to set proper headers, I've added my proxy configuration to NPM, and I ...
- Hi, I'm getting this error while deployi...
✗ Error • search (6937cb70002c2e9c1a97) • Fai ✗ Error: Deployment of search has failed. Check at https://cloud.appwrite.io/console/project-693...