Skip to content

Commit a29ec14

Browse files
authored
Merge pull request #431 from nkzawa/fix/promisify-num-args
set numArgs for promisify of generateAuthorizationCode
2 parents 8b5a945 + 74a4b14 commit a29ec14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/handlers/authorize-handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ AuthorizeHandler.prototype.handle = function(request, response) {
135135

136136
AuthorizeHandler.prototype.generateAuthorizationCode = function(client, user, scope) {
137137
if (this.model.generateAuthorizationCode) {
138-
return promisify(this.model.generateAuthorizationCode).call(this.model, client, user, scope);
138+
return promisify(this.model.generateAuthorizationCode, 3).call(this.model, client, user, scope);
139139
}
140140
return tokenUtil.generateRandomToken();
141141
};

0 commit comments

Comments
 (0)