feat: switch fetch function

This commit is contained in:
Xyphyn committed 2023-08-04 15:08:44 -07:00
1 parent bf63026108
commit 2035ee052a
10 files changed
+38 -29

No files matched your search

+2 -2
View File
@@ -14,7 +14,7 @@ export async function load(req: any) {
return {
sort: sort,
page: page,
posts: await getClient().getPosts({
posts: await getClient(undefined, req.fetch).getPosts({
limit: 40,
community_name: req.params.name,
page: page,
@@ -22,7 +22,7 @@ export async function load(req: any) {
auth: get(profile)?.jwt,
}),
community: (
await getClient().getCommunity({
await getClient(undefined, req.fetch).getCommunity({
name: req.params.name,
auth: get(profile)?.jwt,
})