watson-developer-cloud / botkit-middleware

A middleware to connect Watson Conversation Service to different chat channels using Botkit
https://www.npmjs.com/package/botkit-middleware-watson
Apache License 2.0
206 stars 254 forks source link

updateContext actually preserves other data stored in users storage #73

Closed Naktibalda closed 7 years ago

Naktibalda commented 7 years ago

Before this patch updateContext ignored other fields in storage and assigned properties of previous context as top level properties in storage.

Earlier attempt to fix storage: #7 TypeError: Converting circular structure to JSON: https://github.com/watson-developer-cloud/botkit-middleware/issues/71#issuecomment-312506143

I fixed this issue because circular structure error started happening in my project again.

Naktibalda commented 7 years ago

Thanks