From 1e89fe6a944df18a05d6194ab2e666360a2dd7ea Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Sat, 18 Feb 2023 13:02:34 +0800 Subject: [PATCH] fix: remove debug code --- utils/conversation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/conversation.js b/utils/conversation.js index 11156f9..095ee03 100644 --- a/utils/conversation.js +++ b/utils/conversation.js @@ -24,7 +24,7 @@ export async function getConversations (qq = '') { // 老用户初次更新该功能,这里频繁请求可能会429。由并行改为串行以尽量降低频率。必要时可可能还要等待。 let item = conversations.items[i] let cachedConversationLastMessage = await redis.get(`CHATGPT:CONVERSATION_LAST_MESSAGE_PROMPT:${item.id}`) - if (!cachedConversationLastMessage) { + if (cachedConversationLastMessage) { map[item.id] = cachedConversationLastMessage } else { // 缓存中没有,就去查官方api