Skip to content

Commit

Permalink
fix: 词云bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 committed Nov 7, 2023
1 parent 0d8ef84 commit a45be2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/wordcloud/tokenizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ export class Tokenizer {
}
chats.push(...chatHistory)
chats.sort(compareByTime)
seq = chatHistory[0].seq
seq = chatHistory?.[0]?.seq
if (!seq) {
break
}
if (Config.debug) {
logger.info(`拉取到${chatHistory.length}条聊天记录,当前已累计获取${chats.length}条聊天记录,继续拉...`)
}
Expand Down

0 comments on commit a45be2e

Please sign in to comment.