From accba42584be78e5be3aa55edf8121966cf44bf1 Mon Sep 17 00:00:00 2001 From: Pritimay Sarkar Date: Wed, 27 Sep 2023 10:56:29 +0530 Subject: [PATCH] remove incubationtime and add retest --- cloud-functions/nodejs/functions/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cloud-functions/nodejs/functions/index.js b/cloud-functions/nodejs/functions/index.js index ea3e247..5a37445 100644 --- a/cloud-functions/nodejs/functions/index.js +++ b/cloud-functions/nodejs/functions/index.js @@ -274,7 +274,8 @@ exports.retestMarking = async (event, context) => { docs?.forEach(async (doc) => { await admin.firestore().collection("patientData").doc(doc.id).update({ testStatus: false, - incubationTime: admin.firestore.FieldValue.delete() + retested: true + // incubationTime: admin.firestore.FieldValue.delete() }); }) }