Skip to content

Commit

Permalink
fix(hitl): getUserSession returns a promise
Browse files Browse the repository at this point in the history
  • Loading branch information
slvnperron committed May 1, 2018
1 parent a3415d4 commit 58dc349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/functionals/botpress-hitl/src/db.js
Expand Up @@ -77,7 +77,7 @@ function createUserSession(event) {
.then(db_session => Object.assign({}, session, db_session))
}

function getUserSession(event) {
async function getUserSession(event) {
const userId = (event.user && event.user.id) || event.raw.to

if (!userId) {
Expand Down

0 comments on commit 58dc349

Please sign in to comment.