用户离开军团频道时不再查询数据库
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user