typicaljoe / taffydb

TaffyDB - an open source JavaScript Database for your browser
http://taffydb.com
MIT License
2.21k stars 286 forks source link

Issue with the db().update(field,value) function #132

Open AlphaT7 opened 7 years ago

AlphaT7 commented 7 years ago

Hi, I've noticed there seems to be an issue with the .update() functionality in the latest version: 2.7.3 from cdnjs. When you attempt to update a particular field it adds an additional field as shown in the 2nd row of data:

{"field1":"field1value","field2":"field2value","___id":"T000003R000004","___s":true}, {"field1":"field1value","field2":"field2value","___id":"T000003R000004","___s":true,"asdf":"field1"}]