Skip to content

Commit

Permalink
Merge pull request #151 from boostcampwm-2024/be/feature/order
Browse files Browse the repository at this point in the history
[Be/feature] 지정가 매도 주문 로직 수정
  • Loading branch information
edder773 authored Dec 2, 2024
2 parents 00ed550 + df8726b commit 589a3c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { PendingOrderDto } from '../pendingOrder.dto';
export class GetOrderResponseDto {
@ApiProperty({
description: '응답 코드',
example: 201
example: 200
})
code: number;

Expand Down
6 changes: 3 additions & 3 deletions apps/backend/src/order/order.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ export class OrderController {
const { memberId } = user;
const orderDto = DtoTransformer.mapToOrderDto(limitOrderDto, memberId);
await this.orderService.saveOrder(orderDto);
await this.accountService.updateCashByPlacingOrder(
await this.accountService.updateCropByPlacingSellOrder(
orderDto.memberId,
orderDto.quantity! * orderDto.price!,
orderDto.orderType
orderDto.cropId,
orderDto.quantity!
);

await this.matchingService.matchOrders(limitOrderDto.cropId);
Expand Down

0 comments on commit 589a3c7

Please sign in to comment.