Update PR Gate #32
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
|
- name: Svelte Check
|
||||||
run: bun check
|
run: bun check
|
||||||
- name: Prisma 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');
|
redirect(302, '/login');
|
||||||
}
|
}
|
||||||
return session;
|
return session;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -107,4 +107,4 @@ builder.mutationFields((t) => ({
|
||||||
return post;
|
return post;
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}));
|
}));
|
||||||
|
|
|
||||||
|
|
@ -23,4 +23,4 @@ builder.queryFields((t) => ({
|
||||||
return await prisma.user.findMany();
|
return await prisma.user.findMany();
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}));
|
}));
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,4 +7,4 @@ export async function load(event) {
|
||||||
return {
|
return {
|
||||||
user: rest,
|
user: rest,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue