Skip to content

swap jobType and fn before validating id in job.get#1172

Open
ojhaujjwal wants to merge 1 commit intoAutomattic:masterfrom
ojhaujjwal:patch-1
Open

swap jobType and fn before validating id in job.get#1172
ojhaujjwal wants to merge 1 commit intoAutomattic:masterfrom
ojhaujjwal:patch-1

Conversation

@ojhaujjwal
Copy link
Copy Markdown

I mistakenly passed undefined as id and my 2nd param was function and I was getting:
TypeError: fn is not a function1

Instead, It should have shown invalid id param.

@ojhaujjwal
Copy link
Copy Markdown
Author

any comments on this?

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.

1 participant