Skip to content

Commit

Permalink
fix: correct args re: Automattic/mongoose#5405
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jul 6, 2017
1 parent 5ecf0c2 commit 3f28ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -146,7 +146,7 @@ Kareem.prototype.execPost = function(name, context, args, options, callback) {

if (firstError) {
if (post.length === numArgs + 2) {
post.apply(context, [firstError].concat(newArgs).concat(function(error) {
post.apply(context, [firstError, null].concat(function(error) {
if (error) {
firstError = error;
}
Expand Down

0 comments on commit 3f28ae6

Please sign in to comment.