mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 06:32:03 +00:00
style: apply prettier across the tree
One-shot prettier pass so the new format:check gate starts from a clean baseline. Formatting only — no behaviour change. Generator-owned and vendored artifacts stay untouched via .prettierignore.
This commit is contained in:
1 parent
b3fea2ef59
commit
1f4ba5939d
1000 files changed
+12130
-8385
No files matched your search
@@ -188,11 +188,7 @@ export function returnAllZodIssues(
|
||||
* key is *not* echoed into the JSON body — it is consumed by the
|
||||
* NextResponse constructor and stripped from the meta envelope.
|
||||
*/
|
||||
export function apiError(
|
||||
message: string,
|
||||
status = 400,
|
||||
meta?: ErrorMeta,
|
||||
) {
|
||||
export function apiError(message: string, status = 400, meta?: ErrorMeta) {
|
||||
return buildJsonErrorResponse({ data: null, error: message }, status, meta);
|
||||
}
|
||||
|
||||
@@ -229,10 +225,7 @@ export async function safeJson<T = unknown>(
|
||||
}
|
||||
if (raw.length > opts.maxBytes) {
|
||||
return {
|
||||
error: apiError(
|
||||
`Request body exceeds ${opts.maxBytes} bytes`,
|
||||
413,
|
||||
),
|
||||
error: apiError(`Request body exceeds ${opts.maxBytes} bytes`, 413),
|
||||
};
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user