change if condition for retestmarking
This commit is contained in:
@@ -278,5 +278,14 @@ exports.retestMarking = async (event, context) => {
|
||||
// incubationTime: admin.firestore.FieldValue.delete()
|
||||
});
|
||||
})
|
||||
} else if (classificationResult?.stringValue?.includes("Inconclusive")) {
|
||||
const docs = await admin.firestore().collection("patientData").where("_id", "==", _id.stringValue).get();
|
||||
docs?.forEach(async (doc) => {
|
||||
await admin.firestore().collection("patientData").doc(doc.id).update({
|
||||
testStatus: false,
|
||||
retested: true
|
||||
// incubationTime: admin.firestore.FieldValue.delete()
|
||||
});
|
||||
})
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user