mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
Fixed search page.
This commit is contained in:
parent
1f1d9d7838
commit
a62bd44279
2 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@
|
||||||
let disclosureOpen = $errors.length > 0 || false;
|
let disclosureOpen = $errors.length > 0 || false;
|
||||||
|
|
||||||
// $: skip = (page - 1) * pageSize;
|
// $: skip = (page - 1) * pageSize;
|
||||||
// $: showPagination = $gameStore?.length > 1;
|
$: showPagination = totalCount > pageSize;
|
||||||
|
|
||||||
if ($xl) {
|
if ($xl) {
|
||||||
numberOfGameSkeleton = 8;
|
numberOfGameSkeleton = 8;
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ export const load: PageServerLoad = async ({ fetch, url, locals }) => {
|
||||||
try {
|
try {
|
||||||
let collection = await prisma.collection.findUnique({
|
let collection = await prisma.collection.findUnique({
|
||||||
where: {
|
where: {
|
||||||
user_id: session.userId
|
user_id: session.user.userId
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
console.log('collection', collection);
|
console.log('collection', collection);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue