return result instead of promise

This commit is contained in:
GotPPay
2018-03-30 11:26:42 +02:00
parent 443dc53dbd
commit fae0e0db23
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ module.exports = {
answer = intent.answer;
break;
case constants.answerType.EXTERNAL_SOURCE_WP_JSON:
answer = predefinedSourceHelper.getAnswerFromWP(intent.externalAnswerSource);
answer = await predefinedSourceHelper.getAnswerFromWP(intent.externalAnswerSource);
break;
case constants.answerType.EXTERNAL_SOURCE_RSS:
answer = 'Not implemented yet'