道具:体力回复道具上限

This commit is contained in:
luying
2021-12-28 18:31:20 +08:00
parent 1ce862b719
commit 1dee1a73b4
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -295,7 +295,7 @@ export async function recentPrivateChatInfos(roleId: string, roleName: string) {
}
})
.splice(CHAT_SYSTEM.RECENT_PRIVATE_CHATS_CNT);
if (!recentPrivateChats || !recentPrivateChats.length) return null;
if (!recentPrivateChats || !recentPrivateChats.length) return [];
const roleInfos = await RoleModel.findByRoleIds(recentPrivateChats.map(chat => { return chat.targetRoleId }));
const chatInfos = recentPrivateChats.map( chat => {