From f2fc3a732795ec7d81c935b9e3e47762676932f6 Mon Sep 17 00:00:00 2001 From: Varun Date: Mon, 23 Dec 2024 11:02:40 +0530 Subject: [PATCH] changes in switch count api --- src/controllers/tanksController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index cd4e828b..c8c6dbb4 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -266,8 +266,8 @@ exports.getTanksensorcount = async (req, reply) => { reply.send({ customerId, needSensor: { - yes: needSensorResult["yes"] || 0, - no: needSensorResult["no"] || 0, + YES: needSensorResult["YES"] || 0, + NO: needSensorResult["NO"] || 0, }, inputIsMotor: { true: inputIsMotorResult["true"] || 0,