Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tamarahills committed Aug 23, 2018
1 parent 399ae2a commit 25db4a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions command/CommandController.js
Expand Up @@ -231,7 +231,7 @@ router.post('/articleservice', VerifyToken, async function(req, res) {
res.status(404).send(JSON.stringify({ speech: errSpeech }));
}
} else {
v1ArticleService(req, res);
await v1ArticleService(req, res);
}
});

Expand Down Expand Up @@ -293,7 +293,7 @@ function logMetric(cmd, userid, agent) {
}
}

function v1ArticleService(req, res) {
async function v1ArticleService(req, res) {
try {
let audioUrl;
if (req.body.article_id) {
Expand Down Expand Up @@ -323,7 +323,7 @@ function v1ArticleService(req, res) {
// Send it back to the mobile as quick as possible.
logger.info('POST article resp: ' + JSON.stringify(result));
res.status(200).send(JSON.stringify(result));

// Upload the individual parts for use by Alexa later & cleanup.
let introUrl = await polly_tts.postProcessPart(introFile);
let articleUrl = await polly_tts.postProcessPart(articleFile);
Expand Down

0 comments on commit 25db4a5

Please sign in to comment.