lessthan3 / mongofb

MongoFirebase - MongoDB + Firebase security/updates
MIT License
132 stars 15 forks source link

updateData needs to watch out for 'created' field #13

Closed scien closed 10 years ago

scien commented 10 years ago

and created should only be checked for if the ref is on the document level

lt3.site.get('users').get('facebook-7200529').set('admin')
undefined
Uncaught TypeError: Cannot read property 'created' of undefined mongofb.js:773
exports.DocumentRef.DocumentRef.updateData mongofb.js:773
(anonymous function) mongofb.js:765
success mongofb.js:18
j main.js:1
k.fireWith main.js:1
x main.js:1
b
scien commented 10 years ago

https://github.com/scien/mongofb/commit/a06c5df0b9128db3a486facaca06eadc56cbbbf3