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:
Marc-André Bombeck committed 2026-06-19 22:20:31 +02:00
1 parent b3fea2ef59
commit 1f4ba5939d
1000 files changed
+12130 -8385

No files matched your search

+11 -3
View File
@@ -14,9 +14,15 @@ export const dynamic = "force-dynamic";
const POLAR_USERS_BASE = "https://www.polaraccesslink.com/v3/users";
const TIMEOUT_MS = 5_000;
function categoriseHttpStatus(status: number): { code: string; message: string } {
function categoriseHttpStatus(status: number): {
code: string;
message: string;
} {
if (status === 401 || status === 403) {
return { code: "credentials_rejected", message: "Polar rejected the token" };
return {
code: "credentials_rejected",
message: "Polar rejected the token",
};
}
if (status === 429) {
return { code: "rate_limited", message: "Polar rate-limited the request" };
@@ -40,7 +46,9 @@ export const POST = apiHandler(async () => {
const connection = await getPolarConnection(user.id);
if (!connection) {
return apiError("Polar not connected", 422, { errorCode: "not_configured" });
return apiError("Polar not connected", 422, {
errorCode: "not_configured",
});
}
const start = performance.now();