Remove data health dashboard
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 45s

This commit is contained in:
Cauê Faleiros
2026-08-03 10:31:23 -03:00
parent e993bfdaf3
commit 7fcf52cf67
7 changed files with 2 additions and 240 deletions

View File

@@ -11,7 +11,6 @@ const {
getRfmAnalytics
} = require('../services/analyticsService');
const { getProductComposition, listProductCompositions } = require('../services/productionOrderService');
const { getDataHealthSummary } = require('../services/dataHealthService');
const router = express.Router();
@@ -79,15 +78,6 @@ router.get('/analytics/product-compositions', verifyToken, async (req, res) => {
}
});
router.get('/analytics/data-health', verifyToken, async (req, res) => {
try {
res.json(await getDataHealthSummary());
} catch (error) {
console.error('Error fetching data health:', error);
res.status(500).json({ error: 'Internal Server Error' });
}
});
router.get('/analytics/clients', verifyToken, async (req, res) => {
try {
res.json(await getClientAnalytics(getClientAnalyticsFilters(req.query)));