mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Upgrade sequelize
This commit is contained in:
parent
1735c82572
commit
3acc508440
48 changed files with 457 additions and 466 deletions
|
@ -39,6 +39,8 @@ function clearCacheByToken (token: string) {
|
|||
function getAccessToken (bearerToken: string) {
|
||||
logger.debug('Getting access token (bearerToken: ' + bearerToken + ').')
|
||||
|
||||
if (!bearerToken) return Bluebird.resolve(undefined)
|
||||
|
||||
if (accessTokenCache[bearerToken] !== undefined) return Bluebird.resolve(accessTokenCache[bearerToken])
|
||||
|
||||
return OAuthTokenModel.getByTokenAndPopulateUser(bearerToken)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue