From 7cb5f2d004f5a7dcb4139f616999c16d209099b6 Mon Sep 17 00:00:00 2001 From: vicwere Date: Wed, 15 May 2024 13:31:46 +0300 Subject: [PATCH] Bug Fix Check --- routes/processes/nishauri.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/routes/processes/nishauri.js b/routes/processes/nishauri.js index d1e235a..8d05699 100644 --- a/routes/processes/nishauri.js +++ b/routes/processes/nishauri.js @@ -1146,7 +1146,7 @@ router.get('/vl_result', async(req, res) => { //Check if we already have an existing reschedule request //Search if Program Details Exist - let check_ccc_no= await NUserprograms.findOne({ + let check_ccc_no = await NUserprograms.findOne({ where: { [Op.and]: [ { user_id: base64.decode(userid) }, @@ -1155,7 +1155,7 @@ router.get('/vl_result', async(req, res) => { ] } }); - // console.log(check_ccc_no); +// console.log(check_ccc_no); if(check_ccc_no) { @@ -1171,7 +1171,7 @@ router.get('/vl_result', async(req, res) => { { //Call mLab Instance client_payload='{"ccc_number": "'+check_program_valid.clinic_number+'"}'; - // client_payload='{"ccc_number": "1409101178"}'; + // client_payload='{"ccc_number": "1073900337"}'; const url_details = { url: process.env.MLAB_URL, json: true, @@ -1326,6 +1326,7 @@ router.get('/vl_results', async(req, res) => { if(check_program_valid) { //Call mLab Instance + console.log(check_program_valid.clinic_number); client_payload='{"ccc_number": "'+check_program_valid.clinic_number+'"}'; //client_payload='{"ccc_number": "1409101178"}'; const url_details = { @@ -2082,6 +2083,9 @@ router.post("/getactive_q", async (req, res) => { { res.send(respond); + }else + { + res.send(respond); } //res.send(respond); });