This commit is contained in:
Benjamin Palko 2024-12-20 16:26:44 -05:00
parent 392d6c8b24
commit 7ed6be3347
7 changed files with 7 additions and 7 deletions

View file

@ -24,4 +24,4 @@ jobs:
- name: Svelte Check - name: Svelte Check
run: bun check run: bun check
- name: Prisma Check - name: Prisma Check
run: bun prisma:validate run: bun prisma:validate

View file

@ -1 +1 @@
// place files you want to import through the `$lib` alias in this folder. // place files you want to import through the `$lib` alias in this folder.

View file

@ -19,4 +19,4 @@ export async function validateSession(event: ServerLoadEvent) {
redirect(302, '/login'); redirect(302, '/login');
} }
return session; return session;
} }

View file

@ -107,4 +107,4 @@ builder.mutationFields((t) => ({
return post; return post;
}, },
}), }),
})); }));

View file

@ -23,4 +23,4 @@ builder.queryFields((t) => ({
return await prisma.user.findMany(); return await prisma.user.findMany();
}, },
}), }),
})); }));

View file

@ -2,4 +2,4 @@ import { validateSession } from '$lib/server/auth';
export async function load(event) { export async function load(event) {
await validateSession(event); await validateSession(event);
} }

View file

@ -7,4 +7,4 @@ export async function load(event) {
return { return {
user: rest, user: rest,
}; };
} }