use foreach instead of map
This commit is contained in:
@@ -34,7 +34,7 @@ module.exports = {
|
|||||||
destinationEmail = activeSkill.contactEmail;
|
destinationEmail = activeSkill.contactEmail;
|
||||||
|
|
||||||
let listOfPossibleQuestions = '';
|
let listOfPossibleQuestions = '';
|
||||||
activeSkill.intents.map (intent => {
|
activeSkill.intents.forEach(intent => {
|
||||||
if (intent.questions.length > 0 && intent.intentExplanation) {
|
if (intent.questions.length > 0 && intent.intentExplanation) {
|
||||||
listOfPossibleQuestions +=
|
listOfPossibleQuestions +=
|
||||||
intent.intentExplanation +
|
intent.intentExplanation +
|
||||||
@@ -45,6 +45,8 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.log(listOfPossibleQuestions);
|
||||||
|
|
||||||
//Handler for launch requestconsole.log()
|
//Handler for launch requestconsole.log()
|
||||||
handlers = {
|
handlers = {
|
||||||
LaunchRequest: function () {
|
LaunchRequest: function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user