mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 05:42:19 +00:00
fix(doctor-report): exclude soft-deleted measurements in PDF aggregator
v1.4.41 W-DELETED-2 — the doctor-report-data aggregator (shared by /api/doctor-report JSON + /api/doctor-report/pdf server render) and the section-availability probe now filter deletedAt: null so deleted rows never appear in the rendered PDF or trigger an empty section toggle.
This commit is contained in:
1 parent
dc66dfcfdc
commit
5296a6122f
5 files changed
+1
No files matched your search
@@ -93,6 +93,7 @@ export const POST = apiHandler(async (request: NextRequest) => {
|
||||
userId: user.id,
|
||||
measuredAt: { gte: start, lte: end },
|
||||
type: "SLEEP_DURATION",
|
||||
deletedAt: null,
|
||||
},
|
||||
}),
|
||||
prisma.user.findUnique({
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Reference in new issue
Block a user