Skip to content

Commit

Permalink
경매 api 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Arios67 committed Mar 30, 2022
1 parent 64462f6 commit e28b6b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ars/src/apis/payment/payment.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class PaymentResolver {
const bidder = await this.userService.findOne(currentUser.email);
await this.paymentService.successfulBid(artId, price, bidder, artist);

return 'artId';
return artId;
}

// 입찰 API(임시)
Expand Down
1 change: 1 addition & 0 deletions ars/src/apis/payment/payment.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export class PaymentServie {
// 히스토리 테이블(낙찰자) 저장
await queryRunner.manager.save(History, {
point: price,
balance: bidder.point,
user: bidder,
payment: payment,
});
Expand Down

0 comments on commit e28b6b3

Please sign in to comment.