From b607361a1fbf92b5a9a5453f0e25d466e9e1ee8f Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 15 Aug 2024 16:27:46 -0700 Subject: [PATCH] Run pre-commit --- src/widgets/develancacheui/component.jsx | 5 +---- src/widgets/develancacheui/widget.js | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/widgets/develancacheui/component.jsx b/src/widgets/develancacheui/component.jsx index f292161f2..b13852c65 100644 --- a/src/widgets/develancacheui/component.jsx +++ b/src/widgets/develancacheui/component.jsx @@ -9,10 +9,7 @@ export default function Component({ service }) { const { widget } = service; - const { data: downloadStatsData, error: downloadStatsError } = useWidgetAPI( - widget, - "stats", - ); + const { data: downloadStatsData, error: downloadStatsError } = useWidgetAPI(widget, "stats"); if (downloadStatsError) { return ; diff --git a/src/widgets/develancacheui/widget.js b/src/widgets/develancacheui/widget.js index d4aee3206..e84b9d449 100644 --- a/src/widgets/develancacheui/widget.js +++ b/src/widgets/develancacheui/widget.js @@ -5,7 +5,7 @@ const widget = { proxyHandler: genericProxyHandler, mappings: { - "stats": { + stats: { endpoint: "DownloadStats/GetTotalDownloadStats", }, },