mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Remove any typing from server
This commit is contained in:
parent
33c4972d5b
commit
e6d4b0ff24
5 changed files with 20 additions and 18 deletions
|
@ -68,11 +68,10 @@ function saveToken (token: TokenInfo, client: OAuthClientInstance, user: UserIns
|
|||
userId: user.id
|
||||
}
|
||||
|
||||
return db.OAuthToken.create(tokenToCreate).then(function (tokenCreated: any) {
|
||||
tokenCreated.client = client
|
||||
tokenCreated.user = user
|
||||
return db.OAuthToken.create(tokenToCreate).then(tokenCreated => {
|
||||
const tokenToReturn = Object.assign(tokenCreated, { client, user })
|
||||
|
||||
return tokenCreated
|
||||
return tokenToReturn
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue