mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: 未知原因的错误
This commit is contained in:
parent
d3c9cbbdff
commit
3bdfb15b0d
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue