This commit is contained in:
dahyeon committed 2026-04-26 04:18:05 -07:00
1 parent 4bad21c2d8
commit 8369fbead7
4 files changed
+108 -104

No files matched your search

@@ -203,12 +203,7 @@ export class AuctionService {
if (params.amount > team.points) {
throw new BadRequestException('Bid exceeds team points.');
}
if (
params.bidderUserId &&
!team.captainUserId.equals(params.bidderUserId)
) {
throw new BadRequestException('Bidder is not the captain of this team.');
}
// 임시 운영용: 클라이언트에서 선택한 팀장 모드를 신뢰하고 실제 로그인 사용자 검증은 건너뛴다.
auction.currentBid = params.amount;
auction.currentBidder = params.side;
@@ -218,7 +213,7 @@ export class AuctionService {
auction.bids.push({
side: params.side,
amount: params.amount,
bidderUserId: params.bidderUserId ?? team.captainUserId,
bidderUserId: team.captainUserId,
timestamp: new Date(),
});
await auction.save();