Skip to content

Commit

Permalink
🚑 !HOTFIX: 주문 초기 구독도 subscribeByCode로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
sieunie committed Dec 4, 2024
1 parent 955aa50 commit bd49b77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BE/src/stockSocket/stock-price-socket.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export class StockPriceSocketService extends BaseStockSocketDomainService {
async socketOpenHandler(): Promise<void> {
const orders: Order[] =
await this.stockExecuteOrderRepository.findAllCodeByStatus();
orders.forEach((order) => {
this.baseSocketDomainService.registerCode(this.TR_ID, order.stock_code);
});
await Promise.all(
orders.map((order) => this.subscribeByCode(order.stock_code)),
);
}

socketDataHandler(data: string[]) {
Expand Down

0 comments on commit bd49b77

Please sign in to comment.