projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bff1fe
)
Fix refresh token
author
Chocobozzz
<me@florianbigard.com>
Thu, 7 May 2020 14:36:04 +0000
(16:36 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Thu, 7 May 2020 14:36:04 +0000
(16:36 +0200)
server/models/oauth/oauth-token.ts
patch
|
blob
|
history
diff --git
a/server/models/oauth/oauth-token.ts
b/server/models/oauth/oauth-token.ts
index 3541b6103811f6a3d6d5a9443a7f84c26e8b8ad4..38953e8ad0aefd1b5a48d6dbeec5291f8e9e5d6e 100644
(file)
--- a/
server/models/oauth/oauth-token.ts
+++ b/
server/models/oauth/oauth-token.ts
@@
-164,9
+164,7
@@
export class OAuthTokenModel extends Model<OAuthTokenModel> {
client: {
id: token.oAuthClientId
},
- user: {
- id: token.userId
- },
+ user: token.User,
token
} as OAuthTokenInfo
})