feat(auction): cancel active auction

This commit is contained in:
dahyeon committed 2026-06-07 07:44:59 -07:00
1 parent 8a9dd37755
commit ef693fcf4a
5 files changed
+182 -2

No files matched your search

@@ -164,6 +164,7 @@ export class AuctionController {
) {
this.assertSameCommunity(currentUser, communityId);
await this.auctionService.reset({ matchId, communityId });
this.auctionGateway.broadcastReset(matchId.toString());
}
private resolveBidder(
@@ -364,6 +364,11 @@ export class AuctionGateway
this.syncRoomTimer(matchId, auction);
}
public broadcastReset(matchId: string) {
this.clearRoomTimer(matchId);
this.server.to(matchId).emit('reset', { matchId });
}
private emitChatHistory(socket: Socket, auction: AuctionDocument) {
socket.emit('chat-history', {
messages: (auction.chatMessages ?? []).map((message) =>