Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. (req, res, next) => {
  2. const requestedProgramIDs = req.body.programIDs;
  3. // assume all data is in a cache observable
  4. this.cache$.filter(data => requestedProgramIDs.indexOf(data.id) >= 0)
  5. .toArray()
  6. .subscribe(programs => res.end(JSON.stringify(programs)))
  7. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement