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

+5 -5
View File
@@ -17,13 +17,13 @@ import { checkRateLimit } from "@/lib/rate-limit";
import { prisma } from "@/lib/db";
export const DELETE = apiHandler(
async (
request: NextRequest,
ctx: { params: Promise<{ id: string }> },
) => {
async (request: NextRequest, ctx: { params: Promise<{ id: string }> }) => {
const { user } = await requireAuth();
const { id } = await ctx.params;
annotate({ action: { name: "share-link.revoke" }, meta: { shareLinkId: id } });
annotate({
action: { name: "share-link.revoke" },
meta: { shareLinkId: id },
});
const rl = await checkRateLimit(
`share-link:${user.id}`,
@@ -213,7 +213,8 @@ describe("DELETE /api/share-links/[id] — revoke", () => {
params: Promise.resolve({ id: "link-1" }),
});
expect(res.status).toBe(200);
const arg = vi.mocked(prisma.clinicianShareLink.updateMany).mock.calls[0][0];
const arg = vi.mocked(prisma.clinicianShareLink.updateMany).mock
.calls[0][0];
expect(arg.where).toEqual({
id: "link-1",
userId: "user-1",
+2 -7
View File
@@ -85,8 +85,7 @@ function toSummary(row: {
lastAccessAt: row.lastAccessAt ? row.lastAccessAt.toISOString() : null,
accessCount: row.accessCount,
// Status the UI can render without re-deriving expiry/revocation.
active:
row.revokedAt === null && row.expiresAt.getTime() > Date.now(),
active: row.revokedAt === null && row.expiresAt.getTime() > Date.now(),
};
}
@@ -94,11 +93,7 @@ export const POST = apiHandler(async (request: NextRequest) => {
const { user } = await requireAuth();
annotate({ action: { name: "share-link.create" } });
const rl = await checkRateLimit(
`share-link:${user.id}`,
20,
60 * 60 * 1000,
);
const rl = await checkRateLimit(`share-link:${user.id}`, 20, 60 * 60 * 1000);
if (!rl.allowed) {
return apiError("Maximum 20 share-link operations per hour", 429);
}