misc: improve request efficiency
This commit is contained in:
1 parent
6f80d40c43
commit
8fc452951b
1 file changed
+2
-2
@@ -14,14 +14,14 @@ export async function load(req: any) {
|
|||||||
return {
|
return {
|
||||||
sort: sort,
|
sort: sort,
|
||||||
page: page,
|
page: page,
|
||||||
posts: await getClient(undefined, req.fetch).getPosts({
|
posts: getClient(undefined, req.fetch).getPosts({
|
||||||
limit: 40,
|
limit: 40,
|
||||||
community_name: req.params.name,
|
community_name: req.params.name,
|
||||||
page: page,
|
page: page,
|
||||||
sort: sort,
|
sort: sort,
|
||||||
auth: get(profile)?.jwt,
|
auth: get(profile)?.jwt,
|
||||||
}),
|
}),
|
||||||
community: await getClient(undefined, req.fetch).getCommunity({
|
community: getClient(undefined, req.fetch).getCommunity({
|
||||||
name: req.params.name,
|
name: req.params.name,
|
||||||
auth: get(profile)?.jwt,
|
auth: get(profile)?.jwt,
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in new issue
Block a user