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:
Marc-André Bombeck committed 2026-05-21 17:12:53 +02:00
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.
Binary file not shown.