Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function x () {
- return getThing.fn(...)
- .then(function (ret) {
- return function_that_returns_promise()
- })
- .then(function (events) {
- let results = generateDataPoints(...)
- res.status(200).json(results) // failing
- })
- .catch(function (err) {
- ...
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement