diff --git a/backend/cache/dist/controllers/view.js b/backend/cache/dist/controllers/view.js index 5cc1a19..b5518ed 100644 --- a/backend/cache/dist/controllers/view.js +++ b/backend/cache/dist/controllers/view.js @@ -122,13 +122,13 @@ export const getView = async (req, res) => { const today = new Date(); const last30Days = Array.from({ length: 30 }, (_, i) => format(subDays(today, i + 1), 'yyyy-MM-dd')).reverse(); // Calculate CDN Hits Percentage - const blobHits = []; + const blobViews = []; const blobVisitors = []; const blobCdnHitsPercentage = []; last30Days.forEach(date => { // If the date is not in the metrics, use a placeholder const dayMetrics = (isValidMetrics && metrics.daily[date]?.blob) || { hits: 0, hitsEdge: 0, visitors: 0 }; - blobHits.push(dayMetrics.hits); + blobViews.push(dayMetrics.hits); blobVisitors.push(dayMetrics.visitors); const cdnHitsPercentage = dayMetrics.hits === 0 ? 0 : (dayMetrics.hitsEdge / dayMetrics.hits) * 100; blobCdnHitsPercentage.push(cdnHitsPercentage); @@ -156,7 +156,7 @@ export const getView = async (req, res) => {
-