coresmart / persistencejs

persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).
http://persistencejs.org
1.73k stars 240 forks source link

persistence.sync.js not updating clientside rows #118

Open pazifikwelle opened 11 years ago

pazifikwelle commented 11 years ago

I think I spotted a nasty typo whilst testing syncing from server to client: changes in the columns did not get synced through into the client-columns.

please see https://github.com/pazifikwelle/persistencejs/commit/524249b2f8a67581bcfdbcb93e1d863aa38c2c89#lib/persistence.sync.js

or check line 150 at persistence.server.js which I had to change to:

existingItems = existingItems.concat(groupOfExistingItems);

BredStik commented 9 years ago

+1 Had to do the same fix in order to make it work