1
0
Fork 0
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:
Chocobozzz 2017-07-11 10:59:13 +02:00
parent 33c4972d5b
commit e6d4b0ff24
5 changed files with 20 additions and 18 deletions

View file

@ -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
})
}