Skip to content

Commit

Permalink
Fix Dispatch Callback Parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
andyruwruw committed Dec 30, 2021
1 parent 11021b0 commit edae36a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chess-web-api",
"version": "1.1.1",
"version": "1.1.2",
"description": "chess.com api wrapper",
"main": "src/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/queue/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function dispatch(method, callback, parameters, options, callbackParameters, pri
}

const [_parameters, _options, _callbackParameters, _priority] = sortParameters(
['array', 'object', 'function', 'number'],
['array', 'object', 'array', 'number'],
[parameters, options, callbackParameters, priority],
);

Expand Down

0 comments on commit edae36a

Please sign in to comment.