This commit is contained in:
parent
46ffd8d95a
commit
1cf5ff9a62
|
@ -22,7 +22,7 @@ module.exports = Self => {
|
|||
const tokenId = ctx.req.accessToken.id;
|
||||
|
||||
const now = new Date();
|
||||
const differenceMilliseconds = now - created;
|
||||
const differenceMilliseconds = now - new Date(created);
|
||||
const differenceSeconds = Math.floor(differenceMilliseconds / 1000);
|
||||
|
||||
const accessTokenConfig = await models.AccessTokenConfig.findOne({fields: ['renewPeriod']});
|
||||
|
|
Loading…
Reference in New Issue