master^2
Varun 5 months ago
parent 712489a80e
commit 06f3f00123

@ -1324,7 +1324,7 @@ exports.updateSensorQC = async (req, reply) => {
filteredUpdateData.qccheckdate = moment().format('DD-MMM-YYYY - HH:mm'); filteredUpdateData.qccheckdate = moment().format('DD-MMM-YYYY - HH:mm');
// Find the sensor by ID // Find the sensor by ID
const updatedSensor = await Insensors.findByIdAndUpdate( const updatedSensor = await Insensors.findOneAndUpdate(
hardwareId, hardwareId,
filteredUpdateData, filteredUpdateData,
{ new: true } { new: true }

Loading…
Cancel
Save