修正 根据老token查询的时间判断

This commit is contained in:
wkj 2024-05-16 18:28:26 +08:00
parent 8565bb3017
commit 1efce03ede
3 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ export class BackendRuntimeContext extends BRC {
{
oldValue: tokenValue,
refreshedAt: {
$lte: Date.now() - 300 * 1000,
$gte: Date.now() - 300 * 1000,
},
},
],

View File

@ -73,7 +73,7 @@ class BackendRuntimeContext extends oak_frontend_base_1.BackendRuntimeContext {
{
oldValue: tokenValue,
refreshedAt: {
$lte: Date.now() - 300 * 1000,
$gte: Date.now() - 300 * 1000,
},
},
],

View File

@ -94,7 +94,7 @@ export abstract class BackendRuntimeContext<ED extends EntityDict & BaseEntityDi
{
oldValue: tokenValue,
refreshedAt: {
$lte: Date.now() - 300 * 1000,
$gte: Date.now() - 300 * 1000,
},
},
],