From 98ccccf6abdbc82d9dbb40aee67641a9ecf8af53 Mon Sep 17 00:00:00 2001 From: whyour Date: Mon, 14 Nov 2022 09:28:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dopenapi=20token=E7=94=9F?= =?UTF-8?q?=E6=88=90=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/open.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/services/open.ts b/back/services/open.ts index 00e0a70e..c92d6f24 100644 --- a/back/services/open.ts +++ b/back/services/open.ts @@ -119,7 +119,7 @@ export default class OpenService { (x) => x.expiration >= timestamp, ); let tokens = invalidTokens; - if (invalidTokens.length > 5) { + if (invalidTokens.length >= 5) { tokens = [ ...invalidTokens.slice(0, 4), { ...invalidTokens[4], expiration },