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
207 stars 257 forks source link

Fix: set the storage in the constructor when provided in the configuration #216

Closed younes-io closed 3 years ago

younes-io commented 3 years ago

The motive behind this fix is that I may want to read and/or update the context and eventually call Watson Assistant. This use case generates the log error readContext is called before the first this.receive call because the storage is not yet set at this point. So, as a workaround, I am forced to make a dummy sendToWatson call just to set the storage as that is the only method that does so.

watson-github-bot commented 3 years ago

:tada: This PR is included in version 2.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: