|
|
@ -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 }
|
|
|
|