fix: 未知原因的错误

This commit is contained in:
ikechan8370 2023-03-29 20:43:14 +08:00
parent d3c9cbbdff
commit 3bdfb15b0d

View file

@ -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,