Back

Issue with NodeJS updateDocument()

  • 0
  • Self Hosted
  • Databases
Speedy059
8 Apr, 2024, 22:51

Is it normal behavior to call the .updateDocument() and for $updatedAt to never be updated? The response i'm getting when calling that function is showing the same timestamp for both createdAt and updateAt. I checked in the GUI and can confirm that the timestamps are the same, regardless if .updateDocument() is executed. What would cause this? The column/table that gets hit isn't changed with any new values most of the time, but I still want updateAt to update itself. This used to work fine in the 1.3.x version, now using 1.5.4 and it doesn't work anymore.

TL;DR
Issue: $updatedAt timestamp is not updating when using .updateDocument() in NodeJS. Solution: The behavior where $updatedAt is not getting updated can be due to changes in versions. Update your code to accommodate the changes in the new version of NodeJS (1.5.4) to ensure that $updatedAt is updated properly when using .updateDocument(). Check the documentation for any specific changes that need to be made.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more