From a1e72c7757c7f1b53dd04b17ecc77a136ae77a55 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Fri, 17 Feb 2023 22:15:28 +0800 Subject: [PATCH] fix: destroy await/async --- apps/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/chat.js b/apps/chat.js index e6efc7d..518b83c 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -363,7 +363,7 @@ export class chatgpt extends plugin { await redis.lPop('CHATGPT:CHAT_QUEUE', 0) } if ( e === 'Error: {"detail":"Conversation not found"}') { - destroyConversations (e) + await this.destroyConversations (e) await this.reply(`当前对话异常,已经清除,请重试`, true, { recallMsg: e.isGroup ? 10 : 0 }) } else await this.reply(`通信异常,请稍后重试:${e}`, true, { recallMsg: e.isGroup ? 10 : 0 })