flyzto 1 주 전
부모
커밋
b38779508a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      pinnacle/routes/trading.js

+ 1 - 1
pinnacle/routes/trading.js

@@ -5,7 +5,7 @@ import { startSyncMarketsData, getIorInfo } from "../libs/syncData.js";
 const router = express.Router();
 
 router.get('/get_ior_info/:id/:ior', (req, res) => {
-  const { id, ior } = req.params;
+  const { id, ior } = req.params ?? {};
   getIorInfo(ior, id)
   .then(iorInfo => {
     res.sendSuccess(iorInfo);