From 746c5f691ee7ab03e6fb6b2ec61d2e9b6a3b25ea Mon Sep 17 00:00:00 2001 From: Holegots Date: Fri, 9 Dec 2022 23:36:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20Fix=20if=20token=20expi?= =?UTF-8?q?red,=20message=20will=20not=20send?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chatgpt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chatgpt.ts b/src/chatgpt.ts index 3d7876d..c978401 100644 --- a/src/chatgpt.ts +++ b/src/chatgpt.ts @@ -88,7 +88,7 @@ export class ChatGPTPoole { ): item is IChatGPTItem & { account: AccountWithUserInfo; chatGpt: ChatGPTAPI; - } => item?.email === account.email + } => item.account.email === account.email ); if (chatGPTItem) { await this.cache.delete(account.email);