From 8fc452951b8deb1435ce6ad4b3da8ddac2d92086 Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Wed, 13 Sep 2023 18:19:00 -0700 Subject: [PATCH] misc: improve request efficiency --- src/routes/c/[name]/+layout.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/c/[name]/+layout.ts b/src/routes/c/[name]/+layout.ts index 657eb25b..ad1e075c 100644 --- a/src/routes/c/[name]/+layout.ts +++ b/src/routes/c/[name]/+layout.ts @@ -14,14 +14,14 @@ export async function load(req: any) { return { sort: sort, page: page, - posts: await getClient(undefined, req.fetch).getPosts({ + posts: getClient(undefined, req.fetch).getPosts({ limit: 40, community_name: req.params.name, page: page, sort: sort, auth: get(profile)?.jwt, }), - community: await getClient(undefined, req.fetch).getCommunity({ + community: getClient(undefined, req.fetch).getCommunity({ name: req.params.name, auth: get(profile)?.jwt, }),