Skip to content

Commit

Permalink
fixes on self screening filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald-pro committed Dec 10, 2024
1 parent e5d582b commit f3309bd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions routes/processes/nishauri_new.js
Original file line number Diff line number Diff line change
Expand Up @@ -5741,13 +5741,13 @@ router.get(
}
},
attributes: [
[fn("DATE_FORMAT", col("created_at"), "%M-%Y"), "month"],
[fn("DATE_FORMAT", col("created_at"), "%b-%Y"), "month"],
[fn("AVG", col("weight")), "avg_weight"],
[fn("AVG", col("height")), "avg_height"],
[fn("AVG", col("results")), "avg_results"]
],
group: [literal("month")],
order: [[col("created_at"), "DESC"]]
order: [[col("created_at"), "ASC"]]
});

res.json({
Expand Down Expand Up @@ -5872,11 +5872,11 @@ router.get(
}
},
attributes: [
[fn("DATE_FORMAT", col("created_at"), "%M-%Y"), "month"],
[fn("DATE_FORMAT", col("created_at"), "%b-%Y"), "month"],
[fn("ROUND", fn("AVG", col("level")), 1), "avg_level"]
],
group: [literal("month")],
order: [[col("created_at"), "DESC"]]
order: [[col("created_at"), "ASC"]]
});

res.json({
Expand Down Expand Up @@ -6015,13 +6015,13 @@ router.get(
}
},
attributes: [
[fn("DATE_FORMAT", col("created_at"), "%M-%Y"), "month"],
[fn("DATE_FORMAT", col("created_at"), "%b-%Y"), "month"],
[fn("ROUND", fn("AVG", col("systolic")), 1), "avg_systolic"],
[fn("ROUND", fn("AVG", col("diastolic")), 1), "avg_diastolic"],
[fn("ROUND", fn("AVG", col("pulse_rate")), 1), "avg_pulse_rate"]
],
group: [literal("month")],
order: [[col("created_at"), "DESC"]]
order: [[col("created_at"), "ASC"]]
});

res.json({
Expand Down

0 comments on commit f3309bd

Please sign in to comment.