Skip to content

Commit 3895451

Browse files
committed
Fix dynamodb example
saveAuthCode function's error
1 parent 3672c3a commit 3895451

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/dynamodb/model.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ model.saveAuthCode = function (authCode, clientId, expires, user, callback) {
131131
};
132132

133133
if (expires) code.expires = parseInt(expires / 1000, 10);
134-
console.log("saving", token);
134+
console.log("saving", code);
135135

136-
dal.doSet(token, OAuthAuthCodeTable, { authCode: { S: authCode }}, callback);
136+
dal.doSet(code, OAuthAuthCodeTable, { authCode: { S: authCode }}, callback);
137137
};
138138

139139

0 commit comments

Comments
 (0)