From 3bdfb15b0da6ba0efc1fc64f416ff4af3590dcb2 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Wed, 29 Mar 2023 20:43:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=AA=E7=9F=A5=E5=8E=9F=E5=9B=A0?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/chat.js b/apps/chat.js index 85d227a..de3d25c 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -695,7 +695,7 @@ export class chatgpt extends plugin { } } let ctime = new Date() - previousConversation = await redis.get(key) || JSON.stringify({ + previousConversation = (key ? await redis.get(key) : null) || JSON.stringify({ sender: e.sender, ctime, utime: ctime,