优化聊天服务异步更新标题, 提高性能

This commit is contained in:
RICHQAQ 2024-05-11 11:23:12 +08:00
parent 8287458383
commit fce73205a2

View File

@ -240,7 +240,7 @@ let ChatService = class ChatService {
// }, req);
// common_1.Logger.log(`更新标题名称为: ${chatTitle}`);
// }
//将更新标题名称的代码改为异步函数
const updateTitleAsync = async () => {
if ((groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.title) === '新对话') {
@ -257,7 +257,7 @@ let ChatService = class ChatService {
isSticky: false,
config: '',
}, req);
common_1.Logger.log(`更新标题名称为: ${chatTitle}`);
common_1.Logger.log(`${groupId} 更新标题名称为: ${chatTitle}`);
}
};