Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct async.queue behaviour affected by upgrade #91

Closed
wants to merge 1 commit into from
Closed

Conversation

josebolos
Copy link
Member

It also restores the getAll code to a pre-promise version.

Fixes an issue with the cron job not launching when expected.

It also restores the getAll code to a pre-promise version.

Fixes an issue with the cron job not launching when expected.
.catch(error => {
console.error('model:task:getAll failed');
console.error(error.message);
.toArray(function(error, tasks) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shuold probably be

.toArray()
.then(tasks => callback(null, tasks.map(model.prepareForOutput)))
.catch(error => callback(error));

@josebolos
Copy link
Member Author

Superseded by #93.

@josebolos josebolos closed this Sep 12, 2019
@josebolos josebolos deleted the fix branch September 12, 2019 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants