Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

decorateWithIndicators can't be called within a promise resolution #1

Open
patriciagarcia opened this issue Jul 13, 2016 · 1 comment
Labels

Comments

@patriciagarcia
Copy link
Contributor

patriciagarcia commented Jul 13, 2016

Calling decorateWithIndicators within a promise resolution like..

return queryStock(options)
             .then(stateIndicatorsService.decorateWithIndicators)

doesn't work because this gets undefined

Instead we're forced to use:

 return queryStock(options)
        .then(function (stockCounts) { return stateIndicatorsService.decorateWithIndicators (stockCounts) })
@tlvince
Copy link
Contributor

tlvince commented Jul 13, 2016

Does bind work?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants