|
|
@ -1317,7 +1317,7 @@ exports.updateSensorQC = async (req, reply) => {
|
|
|
|
// Ensure qccheck is handled properly
|
|
|
|
// Ensure qccheck is handled properly
|
|
|
|
if (filteredUpdateData.qccheck) {
|
|
|
|
if (filteredUpdateData.qccheck) {
|
|
|
|
const qccheckLower = filteredUpdateData.qccheck.toLowerCase();
|
|
|
|
const qccheckLower = filteredUpdateData.qccheck.toLowerCase();
|
|
|
|
filteredUpdateData.status = qccheckLower === 'Pass' ? 'available' : 'qcfailed';
|
|
|
|
filteredUpdateData.status = qccheckLower === 'pass' ? 'available' : 'qcfailed';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Update qccheckdate with the current date in "DD-MMM-YYYY - HH:MM" format
|
|
|
|
// Update qccheckdate with the current date in "DD-MMM-YYYY - HH:MM" format
|
|
|
|