From 06abc15c9a668012902e6b2885cf52a35a9cc71e Mon Sep 17 00:00:00 2001 From: ilnaz <237x237@gmail.com> Date: Sun, 19 Jan 2025 10:50:28 +0300 Subject: [PATCH] feat: add const for time --- src/api/arm.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/arm.ts b/src/api/arm.ts index 85d6013..d1f2573 100644 --- a/src/api/arm.ts +++ b/src/api/arm.ts @@ -10,8 +10,8 @@ const armService = () => { const endpoint = getConfigValue('dry-wash.api'); const fetchOrders = async ({ date }: { date: Date }) => { - let startDate = dayjs(date).startOf('day').toISOString(); - let endDate = dayjs(date).endOf('day').toISOString(); + const startDate = dayjs(date).startOf('day').toISOString(); + const endDate = dayjs(date).endOf('day').toISOString(); const response = await fetch(`${endpoint}${ArmEndpoints.ORDERS}`, { method: 'POST',