From d7263bc00119b733b5aeed73d891daa418a0935b Mon Sep 17 00:00:00 2001 From: Varun Date: Wed, 14 May 2025 15:30:22 +0530 Subject: [PATCH] changes --- src/controllers/storeController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/storeController.js b/src/controllers/storeController.js index 470a5b7c..20621ae4 100644 --- a/src/controllers/storeController.js +++ b/src/controllers/storeController.js @@ -1325,11 +1325,11 @@ exports.updateSensorQC = async (req, reply) => { // Find the sensor by ID const updatedSensor = await Insensors.findOneAndUpdate( - hardwareId, + { hardwareId }, // correct query filter filteredUpdateData, { new: true } ); - + if (!updatedSensor) { return reply.code(409).send({ message: 'Sensor not found' }); }