e-oj / Fawn

Transactions for MongoDB (See the README)
https://www.npmjs.com/package/fawn
MIT License
485 stars 54 forks source link

Incorrect task encoding #1

Closed teslitsky closed 7 years ago

teslitsky commented 7 years ago

Hello. Thank you for your solid work. I have found bug about encoding conditions like task.update(User, { id: 123, balance: { $gte: 100 } }) I have error Error: key $gte must not start with '$'. it's because handle$Token function do not encode second level conditions like $gte.

e-oj commented 7 years ago

I've pushed updates that address this issue. Run the tests to make sure it's all good. Thanks again for your help.