telegraf-session-redis
telegraf-session-redis copied to clipboard
Avoid overriding the inner middleware's result with an empty object
In the promise call chain, avoid returning as resolution data an empty object as done the saveSession
method.
Therefore, add closure to return the middleware resolution data after the save session promise completes.