Skip to content

Commit

Permalink
added logs for the new modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald-pro committed Sep 6, 2024
1 parent 9d7671b commit 119ddb7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions routes/processes/nishauri_new.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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({
Expand All @@ -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,
Expand All @@ -4650,6 +4667,7 @@ router.post(
});
}
}

} else {
return res.status(404).json({
success: false,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 119ddb7

Please sign in to comment.