Paginate Olist monitor history
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m17s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m17s
This commit is contained in:
@@ -15,7 +15,10 @@ const router = express.Router();
|
||||
|
||||
router.get('/olist/status', verifySuperAdmin, async (req, res, next) => {
|
||||
try {
|
||||
res.json(await getOlistStatus());
|
||||
res.json(await getOlistStatus({
|
||||
runsPage: req.query.runsPage,
|
||||
runsPageSize: req.query.runsPageSize
|
||||
}));
|
||||
} catch (error) {
|
||||
next(error);
|
||||
}
|
||||
@@ -51,7 +54,10 @@ router.post('/olist/sync/stop', verifySuperAdmin, async (req, res, next) => {
|
||||
|
||||
router.get('/olist/production-order-imports', verifySuperAdmin, async (req, res, next) => {
|
||||
try {
|
||||
res.json(await listProductionOrderImportData());
|
||||
res.json(await listProductionOrderImportData({
|
||||
runsPage: req.query.runsPage,
|
||||
runsPageSize: req.query.runsPageSize
|
||||
}));
|
||||
} catch (error) {
|
||||
next(error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user