mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 05:17:10 +00:00
fix: 结束对话计算错误
This commit is contained in:
parent
8d12cb7466
commit
d9b5d77d46
1 changed files with 3 additions and 3 deletions
|
|
@ -92,10 +92,10 @@ export class ChatGPTManagement extends plugin {
|
|||
for (const userState of userStates) {
|
||||
if (userState.current.conversationId && userState.current.messageId) {
|
||||
num++
|
||||
userState.current.conversationId = ''
|
||||
userState.current.messageId = ''
|
||||
await Chaite.getInstance().getUserStateStorage().setItem(userState.userId + '', userState)
|
||||
}
|
||||
userState.current.conversationId = ''
|
||||
userState.current.messageId = ''
|
||||
await Chaite.getInstance().getUserStateStorage().setItem(userState.userId + '', userState)
|
||||
}
|
||||
this.reply(`已结束${num}个用户的对话`)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue