用户离开军团频道时不再查询数据库

This commit is contained in:
liangtongchuan
2021-08-03 21:17:59 +08:00
parent 64a05fd259
commit 6c19e98cfb
3 changed files with 4 additions and 4 deletions

View File

@@ -67,8 +67,7 @@ export async function leaveCityChannel(roleId: string, sid: string, cityId: numb
}
export async function leaveGuildChannel(roleId: string, sid: string) {
const { guildCode } = await RoleModel.findByRoleId(roleId, 'guildCode');
export async function leaveGuildChannel(roleId: string, sid: string, guildCode: string) {
if (!guildCode) return;
const roomId = groupRoomId(CHANNEL_PREFIX.GUILD, guildCode);
await leaveChannel(roomId, roleId, sid);