refs #5554 new Date()
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2023-06-27 08:24:31 +02:00
parent 46ffd8d95a
commit 1cf5ff9a62
1 changed files with 1 additions and 1 deletions

View File

@ -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']});