Skip to content

Job save callback should be called without arguments #2

Description

@schinkowitch

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions