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

@@ -174,9 +174,7 @@ describe("POST /api/import/csv — write loop + per-row envelope", () => {
);
const res = await POST(
csvRequest(
[HEADER, "WEIGHT,80.5,kg,2026-05-01T08:00:00Z,,,"].join("\n"),
),
csvRequest([HEADER, "WEIGHT,80.5,kg,2026-05-01T08:00:00Z,,,"].join("\n")),
);
const body = (await res.json()) as CsvEnvelope;
expect(body.data?.inserted).toBe(0);
+11 -4
View File
@@ -125,7 +125,8 @@ export const POST = apiHandler(async (request: NextRequest) => {
unit: m.unit,
measuredAt: m.measuredAt,
notes: m.notes ?? null,
glucoseContext: (m.glucoseContext as GlucoseContext | undefined) ?? null,
glucoseContext:
(m.glucoseContext as GlucoseContext | undefined) ?? null,
},
create: {
userId,
@@ -136,7 +137,8 @@ export const POST = apiHandler(async (request: NextRequest) => {
externalId: m.externalId,
measuredAt: m.measuredAt,
notes: m.notes ?? null,
glucoseContext: (m.glucoseContext as GlucoseContext | undefined) ?? null,
glucoseContext:
(m.glucoseContext as GlucoseContext | undefined) ?? null,
},
select: { createdAt: true, updatedAt: true },
});
@@ -159,7 +161,8 @@ export const POST = apiHandler(async (request: NextRequest) => {
source: "IMPORT",
measuredAt: m.measuredAt,
notes: m.notes ?? null,
glucoseContext: (m.glucoseContext as GlucoseContext | undefined) ?? null,
glucoseContext:
(m.glucoseContext as GlucoseContext | undefined) ?? null,
},
});
inserted++;
@@ -232,7 +235,11 @@ export const POST = apiHandler(async (request: NextRequest) => {
}
const outcome = writeOutcome.get(r.line);
if (outcome === "duplicate") {
return { line: r.line, status: "skipped" as const, reason: "duplicate" };
return {
line: r.line,
status: "skipped" as const,
reason: "duplicate",
};
}
if (outcome === "updated") {
return { line: r.line, status: "updated" as const };