You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this is because you're putting a moment object on the exp_date key in your update function. PouchDB can not serialize those and i was able to repro your error in this JSBin http://jsbin.com/seyukuseku/edit?js,output
Can you try convert it to a timestamp or JSON string, for example with moment().valueOf() ?
Issue
I've got a piece of code to update my data. But I've not been able to do so because I keep getting this one error:
I've tried using
upsert
plugin, regular put with no luck.When I create data, I do not use put. I use post instead without providing any ID field. Is it because of this?
Info
Reproduce
For creating new document:
For Updating document:
The text was updated successfully, but these errors were encountered: