From 119ddb7da71a96f7721998b7736c7a8b3a128d8a Mon Sep 17 00:00:00 2001 From: Ronald-pro <36841157+Ronald-pro@users.noreply.github.com> Date: Fri, 6 Sep 2024 08:39:36 +0300 Subject: [PATCH] added logs for the new modules --- routes/processes/nishauri_new.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/routes/processes/nishauri_new.js b/routes/processes/nishauri_new.js index 8ec78d8..9fbff51 100644 --- a/routes/processes/nishauri_new.js +++ b/routes/processes/nishauri_new.js @@ -2886,6 +2886,10 @@ router.post( created_at: today, updated_at: today }); + var log_activity_ = NLogs.create({ + user_id: base64.decode(user_id), + access: "DAWADROP" + }); if (new_order) { return res.status(200).json({ success: true, @@ -2915,6 +2919,10 @@ router.post( created_at: today, updated_at: today }); + var log_activity_ = NLogs.create({ + user_id: base64.decode(user_id), + access: "DAWADROP" + }); if (new_order) { return res.status(200).json({ success: true, @@ -4617,6 +4625,10 @@ router.post( } } ); + var log_activity_ = NLogs.create({ + user_id: base64.decode(user_id), + access: "BMICALCULATOR" + }); if (update_bmi) { return res.status(200).json({ @@ -4638,6 +4650,11 @@ router.post( created_at: today, updated_at: today }); + var log_activity_ = NLogs.create({ + user_id: base64.decode(user_id), + access: "BMICALCULATOR" + }); + if (new_bmi) { return res.status(200).json({ success: true, @@ -4650,6 +4667,7 @@ router.post( }); } } + } else { return res.status(404).json({ success: false, @@ -4687,6 +4705,10 @@ router.post( created_at: today, updated_at: today }); + var log_activity_ = NLogs.create({ + user_id: base64.decode(user_id), + access: "BLOODPRESSURE" + }); if (new_blood_pressure) { return res.status(200).json({ success: true, @@ -4884,6 +4906,10 @@ router.post( created_at: today, updated_at: today }); + var log_activity_ = NLogs.create({ + user_id: base64.decode(user_id), + access: "BLOODSUGAR" + }); if (new_blood_sugar) { return res.status(200).json({ success: true,