💭 Description
In updateDocument Method:
const promise = databases.updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]');
above code should be updated to this:
const promise = databases.updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]',{title,description});
which increases readability for the users, by reading this they would know they have to pass the object with attributes they want to update.
Click on the link to visit updateDocument() in documentation: Link
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?