format
This commit is contained in:
parent
392d6c8b24
commit
7ed6be3347
7 changed files with 7 additions and 7 deletions
2
.github/workflows/pr.yaml
vendored
2
.github/workflows/pr.yaml
vendored
|
|
@ -24,4 +24,4 @@ jobs:
|
|||
- name: Svelte Check
|
||||
run: bun check
|
||||
- name: Prisma Check
|
||||
run: bun prisma:validate
|
||||
run: bun prisma:validate
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -19,4 +19,4 @@ export async function validateSession(event: ServerLoadEvent) {
|
|||
redirect(302, '/login');
|
||||
}
|
||||
return session;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -107,4 +107,4 @@ builder.mutationFields((t) => ({
|
|||
return post;
|
||||
},
|
||||
}),
|
||||
}));
|
||||
}));
|
||||
|
|
|
|||
|
|
@ -23,4 +23,4 @@ builder.queryFields((t) => ({
|
|||
return await prisma.user.findMany();
|
||||
},
|
||||
}),
|
||||
}));
|
||||
}));
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ import { validateSession } from '$lib/server/auth';
|
|||
|
||||
export async function load(event) {
|
||||
await validateSession(event);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,4 +7,4 @@ export async function load(event) {
|
|||
return {
|
||||
user: rest,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue