Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const {words, allowExisting} = report.value;
  2.  
  3.         res.setHeader('Content-Type', 'application/json');
  4.         const intervalId = setInterval(() => {
  5.             res.send('');
  6.         }, 5000);
  7.  
  8.         var result = yield this.subtitlesService.populateWords(
  9.             words,
  10.             allowExisting
  11.         );
  12.  
  13.         result.existingWords = yield this.population.word(
  14.             result.existingWords,
  15.             fields.existingWords,
  16.             {actor}
  17.         );
  18.  
  19.         result = this.normalize(result, fields);
  20.  
  21.         clearInterval(intervalId);
  22.  
  23.         res.send(JSON.stringify(result));
  24.  
  25.         res.end();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement