diff --git a/back/methods/vn-user/renew-token.js b/back/methods/vn-user/renew-token.js index fb99992bf..ee50d06d4 100644 --- a/back/methods/vn-user/renew-token.js +++ b/back/methods/vn-user/renew-token.js @@ -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']});