Skip to content

Commit

Permalink
slice to 50 results
Browse files Browse the repository at this point in the history
  • Loading branch information
pogseal committed Aug 21, 2024
1 parent 68e2970 commit d305f88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/routes/_site+/_components/Column-4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function ColumnFour() {
const theme = useTheme();

//@ts-ignore
const trendingPages = (site?.trendingPages || []).slice(0, 50);
const trendingPages = site?.trendingPages || [];
const groupedTrendingPages = [];

//@ts-ignore
Expand Down
3 changes: 2 additions & 1 deletion app/routes/inngest+/utils/updateSiteAnalytics.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ export const updateSiteAnalytics = inngest.createFunction(
pageViews,
path,
};
});
})
.slice(0, 50);

async function getEntryData(doc: {
customPageSlug?: string;
Expand Down

0 comments on commit d305f88

Please sign in to comment.