diff --git a/game-server/app/services/auctionService.ts b/game-server/app/services/auctionService.ts index b11d21e78..e82b2b7bb 100644 --- a/game-server/app/services/auctionService.ts +++ b/game-server/app/services/auctionService.ts @@ -494,29 +494,29 @@ export async function pushAuctionOver(lot: LotType) { } export async function pushAuctionUpdate(lots: LotType[], dividends: DividendType[]) { - let lotsByGuild = new Map(); - let lotsByServer = new Map(); + // let lotsByGuild = new Map(); + // let lotsByServer = new Map(); - for(let lot of lots) { - if(lot.auctionStage === AUCTION_STAGE.DEFAULT || lot.auctionStage === AUCTION_STAGE.GUILD) { - if(!lotsByGuild.has(lot.guildCode)) { - lotsByGuild.set(lot.guildCode, []); - } - lotsByGuild.get(lot.guildCode).push(lot); - } else { - if(!lotsByServer.has(lot.serverId)) { - lotsByServer.set(lot.serverId, []); - } - lotsByServer.get(lot.serverId).push(lot); - } - } + // for(let lot of lots) { + // if(lot.auctionStage === AUCTION_STAGE.DEFAULT || lot.auctionStage === AUCTION_STAGE.GUILD) { + // if(!lotsByGuild.has(lot.guildCode)) { + // lotsByGuild.set(lot.guildCode, []); + // } + // lotsByGuild.get(lot.guildCode).push(lot); + // } else { + // if(!lotsByServer.has(lot.serverId)) { + // lotsByServer.set(lot.serverId, []); + // } + // lotsByServer.get(lot.serverId).push(lot); + // } + // } - for(let [guildCode, lots] of lotsByGuild) { - await sendMessageToGuildWithSuc(guildCode, PUSH_ROUTE.AUCTION_UPDATE, { lots: processLotsFormat(lots) }); - } - for(let [serverId, lots] of lotsByServer) { - await sendMessageToServerWithSuc(serverId, PUSH_ROUTE.AUCTION_UPDATE, { lots: processLotsFormat(lots) }); - } + // for(let [guildCode, lots] of lotsByGuild) { + // await sendMessageToGuildWithSuc(guildCode, PUSH_ROUTE.AUCTION_UPDATE, { lots: processLotsFormat(lots) }); + // } + // for(let [serverId, lots] of lotsByServer) { + // await sendMessageToServerWithSuc(serverId, PUSH_ROUTE.AUCTION_UPDATE, { lots: processLotsFormat(lots) }); + // } let dividendsResult = new Map(); for(let dividend of dividends) {