mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 00:12:18 +00:00
release: v1.32.0 — hardening and scalability (#580)
* release: prepare v1.32.0 * test: stabilize water capture re-entry
This commit is contained in:
1 parent
b01822be48
commit
62eb431d66
372 files changed
+25178
-8561
No files matched your search
@@ -167,7 +167,9 @@ async function postLabResult(request: NextRequest) {
|
||||
.catch(() => {
|
||||
/* swallow — the 422 response is the contract */
|
||||
});
|
||||
return returnAllZodIssues(parsed.error, 422);
|
||||
return returnAllZodIssues(parsed.error, 422, {
|
||||
errorCode: "labs.create.invalid",
|
||||
});
|
||||
}
|
||||
|
||||
const {
|
||||
@@ -209,7 +211,9 @@ async function postLabResult(request: NextRequest) {
|
||||
},
|
||||
});
|
||||
if (!found) {
|
||||
return apiError("Biomarker not found", 404);
|
||||
return apiError("Biomarker not found", 404, {
|
||||
errorCode: "labs.biomarker.notFound",
|
||||
});
|
||||
}
|
||||
biomarker = found;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user