rasa: add support for eventhook which provides user and bot messages in realtime and supports redirecting to a new app

This commit is contained in:
Dave Horton
2021-09-02 10:27:59 -04:00
committed by Dave Horton
parent 19f3cbaa43
commit d15fdcf663
3 changed files with 72 additions and 8 deletions

View File

@@ -45,7 +45,7 @@ module.exports = function(srf, logger) {
// TODO: alert
return res.send(503, {headers: {'X-Reason': 'Account exists but is inactive'}});
}
logger.debug({accountInfo: req.locals.accountInfo}, `retrieved account info for ${account_sid}`);
logger.debug({accountInfo: req.locals?.accountInfo?.account}, `retrieved account info for ${account_sid}`);
next();
} catch (err) {
logger.info({err}, `Error retrieving account details for account ${account_sid}`);