From 37f9849b5627d922be3524d00749dc9c94117040 Mon Sep 17 00:00:00 2001 From: Chaiwat Suwannarat Date: Fri, 3 May 2024 22:25:51 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=89=20Call=20API=20to=20submit=20data?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/utils/servicesUtils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/utils/servicesUtils.js b/source/utils/servicesUtils.js index 6e9fdd60..3cda262b 100644 --- a/source/utils/servicesUtils.js +++ b/source/utils/servicesUtils.js @@ -61,7 +61,7 @@ const systemMetricsSubmitter = () => { child.info('Sending system matrix data to status page...') const submitPoint = async (count) => { - count++ + ++count if (count > totalPoints) return child.info('Done, the matrix has been updated.') @@ -104,6 +104,8 @@ const systemMetricsSubmitter = () => { } } } + + submitPoint(0) } /**