Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const {words, allowExisting} = report.value;
- res.setHeader('Content-Type', 'application/json');
- const intervalId = setInterval(() => {
- res.send('');
- }, 5000);
- var result = yield this.subtitlesService.populateWords(
- words,
- allowExisting
- );
- result.existingWords = yield this.population.word(
- result.existingWords,
- fields.existingWords,
- {actor}
- );
- result = this.normalize(result, fields);
- clearInterval(intervalId);
- res.send(JSON.stringify(result));
- res.end();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement