mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 21:32:18 +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
@@ -59,7 +59,10 @@ export const PUT = apiHandler(async (request: NextRequest) => {
|
||||
const { recipient, enabled } = parsed.data;
|
||||
|
||||
if (enabled && !recipient) {
|
||||
return apiError("A recipient address is required when email is enabled", 422);
|
||||
return apiError(
|
||||
"A recipient address is required when email is enabled",
|
||||
422,
|
||||
);
|
||||
}
|
||||
|
||||
const config = JSON.stringify({ recipient: recipient || "" });
|
||||
|
||||
@@ -41,14 +41,18 @@ export const POST = apiHandler(async () => {
|
||||
eventType: "SYSTEM_ALERT",
|
||||
userId: user.id,
|
||||
title: "HealthLog Test",
|
||||
message: "HealthLog: Connection successful! Email notifications are active.",
|
||||
message:
|
||||
"HealthLog: Connection successful! Email notifications are active.",
|
||||
});
|
||||
|
||||
if (!result.ok) {
|
||||
return apiError("Failed to send test email", 500);
|
||||
}
|
||||
|
||||
annotate({ action: { name: "settings.email.test" }, meta: { success: true } });
|
||||
annotate({
|
||||
action: { name: "settings.email.test" },
|
||||
meta: { success: true },
|
||||
});
|
||||
|
||||
return apiSuccess({ sent: true });
|
||||
});
|
||||
@@ -9,8 +9,14 @@ import { defaultLocale, type Locale } from "@/lib/i18n/config";
|
||||
import { getServerTranslator } from "@/lib/i18n/server-translator";
|
||||
|
||||
function isLocale(value: string | null | undefined): value is Locale {
|
||||
return value === "de" || value === "en" || value === "fr" ||
|
||||
value === "es" || value === "it" || value === "pl";
|
||||
return (
|
||||
value === "de" ||
|
||||
value === "en" ||
|
||||
value === "fr" ||
|
||||
value === "es" ||
|
||||
value === "it" ||
|
||||
value === "pl"
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -36,7 +36,8 @@ export const POST = apiHandler(async () => {
|
||||
eventType: "SYSTEM_ALERT",
|
||||
userId: user.id,
|
||||
title: "HealthLog Test",
|
||||
message: "HealthLog: Connection successful! Webhook notifications are active.",
|
||||
message:
|
||||
"HealthLog: Connection successful! Webhook notifications are active.",
|
||||
});
|
||||
|
||||
if (!result.ok) {
|
||||
|
||||
Reference in new issue
Block a user