fix: refs #7811 Tests
gitea/salix/pipeline/pr-test This commit looks good Details
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Guillermo Bonet 2024-08-27 07:24:10 +02:00
parent 1fac261682
commit 83f3a05721
1 changed files with 3 additions and 2 deletions

View File

@ -29,8 +29,9 @@ module.exports = Self => {
return token; return token;
// Schedule to remove current token // Schedule to remove current token
setTimeout(() => { setTimeout(async() => {
Self.logout(token.id); if (await models.AccessToken.findById(token.id))
await Self.logout(token.id);
}, courtesyTime * 1000); }, courtesyTime * 1000);
// Get scopes // Get scopes