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

Commit

Permalink
save summary
Browse files Browse the repository at this point in the history
  • Loading branch information
tamarahills committed Feb 5, 2019
1 parent d1aa4c7 commit ae66147
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions command/CommandController.js
Expand Up @@ -457,12 +457,9 @@ router.post('/summary', VerifyToken, async function(req, res) {
process.env.POLLY_VOICE
);

logger.debug('before audiourl check it is: ' + audiourl);

if (!audiourl) {
// Build the summary audio as it was not found.
audiourl = await buildSummaryAudioFromUrl(req.body.url);
logger.debug('After build... Audiourl is: ' + audiourl);
// Store the file so we find it next time :)
await audioHelper.storeAudioFileLocation(
article.resolved_id,
Expand Down
3 changes: 0 additions & 3 deletions data/database.js
Expand Up @@ -42,9 +42,6 @@ class Database {

async getAudioFileLocation(articleId, type, voice) {
logger.info(`getAudioFileLocation for ${articleId}/${type}`);
logger.info('type is: ' + type);
logger.info('voice is: ' + voice);
logger.info('articleId is: ' + articleId);
return new Promise(resolve => {
AudioFiles.query('item_id')
.eq(articleId)
Expand Down

0 comments on commit ae66147

Please sign in to comment.