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