appy-one / acebase-client

Client to connect to remote AceBase NoSQL database server
MIT License
21 stars 8 forks source link

TypeError: rollbackUpdates is not an Object #35

Closed donl closed 1 year ago

donl commented 1 year ago

I was seeing this error when trying to update an object with a new, previously undefined, property. set worked and then eventually update behaved as well.

If I can reproduce it further, I will provide more info.

Thanks!

[Error] [default] Failed to update cache for "bazz". Error: 
TypeError: rollbackUpdates is not an Object. (evaluating 'prop in rollbackUpdates')
(anonymous function) — api-web.ts:1751
forEach
(anonymous function) — api-web.ts:1750
asyncFunctionResume
(anonymous function)
promiseReactionJobWithoutPromise
promiseReactionJob
    error
    (anonymous function) (acebase-client.js:6084)
    promiseReactionJob
appy-one commented 1 year ago

Good catch! Moving this issue to the acebase-client repo

appy-one commented 1 year ago

Hi Don, I fixed this in acebase-client v1.18.3