Skip to content

Commit 5802c8a

Browse files
author
Thom Seddon
committed
Fix postgres example
1 parent 2b6be29 commit 5802c8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/postgresql/model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ model.saveRefreshToken = function (refreshToken, clientId, userId, expires, call
7777
pg.connect(connString, function (err, client, done) {
7878
if (err) return callback(err);
7979
client.query('INSERT INTO oauth_refresh_tokens(refresh_token, client_id, user_id, ' +
80-
'expires) VALUES ($1, $2, $3, $4)', [accessToken, clientId, userId, expires],
80+
'expires) VALUES ($1, $2, $3, $4)', [refreshToken, clientId, userId, expires],
8181
function (err, result) {
8282
callback(err);
8383
done();

0 commit comments

Comments
 (0)