diff options
author | Chocobozzz <me@florianbigard.com> | 2020-05-07 16:36:04 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-05-07 16:36:04 +0200 |
commit | 716adfaed6d8e549521b6dfe8bf5960d9f73bbd6 (patch) | |
tree | c39b18eae6c73681260fd8b5534eef29097c9f8e /server | |
parent | 8bff1fe009b555434c41bde361fddbb484329bae (diff) | |
download | PeerTube-716adfaed6d8e549521b6dfe8bf5960d9f73bbd6.tar.gz PeerTube-716adfaed6d8e549521b6dfe8bf5960d9f73bbd6.tar.zst PeerTube-716adfaed6d8e549521b6dfe8bf5960d9f73bbd6.zip |
Fix refresh token
Diffstat (limited to 'server')
-rw-r--r-- | server/models/oauth/oauth-token.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/server/models/oauth/oauth-token.ts b/server/models/oauth/oauth-token.ts index 3541b6103..38953e8ad 100644 --- a/server/models/oauth/oauth-token.ts +++ b/server/models/oauth/oauth-token.ts | |||
@@ -164,9 +164,7 @@ export class OAuthTokenModel extends Model<OAuthTokenModel> { | |||
164 | client: { | 164 | client: { |
165 | id: token.oAuthClientId | 165 | id: token.oAuthClientId |
166 | }, | 166 | }, |
167 | user: { | 167 | user: token.User, |
168 | id: token.userId | ||
169 | }, | ||
170 | token | 168 | token |
171 | } as OAuthTokenInfo | 169 | } as OAuthTokenInfo |
172 | }) | 170 | }) |