Skip to content

Commit

Permalink
Fix single fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh-mn-yral committed Feb 8, 2024
1 parent af714b6 commit 23eb721
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/web-client/src/routes/(feed)/feed/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ export const load: PageLoad = async ({ url, fetch }) => {

const res = await postCache(
fetch,
).get_top_posts_aggregated_from_canisters_on_this_network_for_home_feed(
).get_top_posts_aggregated_from_canisters_on_this_network_for_home_feed_cursor(
BigInt(0),
BigInt(1),
[false],
[],
)

if ('Ok' in res && res.Ok[0]) {
Expand Down
4 changes: 3 additions & 1 deletion packages/web-client/src/routes/(feed)/hotornot/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ import { postCache } from '$lib/helpers/backend'
export const load: PageLoad = async ({ fetch }) => {
const res = await postCache(
fetch,
).get_top_posts_aggregated_from_canisters_on_this_network_for_hot_or_not_feed(
).get_top_posts_aggregated_from_canisters_on_this_network_for_hot_or_not_feed_cursor(
BigInt(0),
BigInt(1),
[false],
[],
)

if ('Ok' in res && res.Ok[0]) {
Expand Down

0 comments on commit 23eb721

Please sign in to comment.