Skip to content

Commit bd49b77

Browse files
committed
🚑 !HOTFIX: 주문 초기 구독도 subscribeByCode로 변경
1 parent 955aa50 commit bd49b77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

BE/src/stockSocket/stock-price-socket.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ export class StockPriceSocketService extends BaseStockSocketDomainService {
2727
async socketOpenHandler(): Promise<void> {
2828
const orders: Order[] =
2929
await this.stockExecuteOrderRepository.findAllCodeByStatus();
30-
orders.forEach((order) => {
31-
this.baseSocketDomainService.registerCode(this.TR_ID, order.stock_code);
32-
});
30+
await Promise.all(
31+
orders.map((order) => this.subscribeByCode(order.stock_code)),
32+
);
3333
}
3434

3535
socketDataHandler(data: string[]) {

0 commit comments

Comments
 (0)