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

Job save callback should be called without arguments #2

Open
schinkowitch opened this issue Jan 22, 2015 · 0 comments
Open

Job save callback should be called without arguments #2

schinkowitch opened this issue Jan 22, 2015 · 0 comments

Comments

@schinkowitch
Copy link
Contributor

If I call

jobs.createJob({...}).save(function (error) {
if (error) {
// Unable to save job
} else {
// Job saved!
}
});

The error in the callback is set to the job. It should be undefined.

Ideally, we should be able to test both cases (job saved successfully / job save failed), but that's a new feature.

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

No branches or pull requests

1 participant