Skip to content

Commit

Permalink
refactor: 매도 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungGwan123 committed Nov 21, 2024
1 parent aca049a commit 32539fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/server/src/trade/trade-ask.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class AskService implements OnModuleInit {
await queryRunner.connect();
await queryRunner.startTransaction('READ COMMITTED');
try {
if(askDto.receivedAmount) throw new BadRequestException();
if(askDto.receivedAmount<=0) throw new BadRequestException();
const userAccount = await this.accountRepository.findOne({
where: {
user: { id: user.userId },
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/trade/trade-bid.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class BidService implements OnModuleInit {
await queryRunner.connect();
await queryRunner.startTransaction('READ COMMITTED');
try {
if(bidDto.receivedAmount===0) throw new BadRequestException();
if(bidDto.receivedAmount<=0) throw new BadRequestException();
const userAccount = await this.accountRepository.findOne({
where: {
user: { id: user.userId },
Expand Down

0 comments on commit 32539fe

Please sign in to comment.