Skip to content

Commit

Permalink
fix(blog): adjust number of posts fetched from Hashnode
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCatLady committed Aug 2, 2024
1 parent 808b990 commit 012caaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/hashnode/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export const getPosts = async ({
PostsDocument,
{
host: HASHNODE_HOST,
first: first && first > 0 ? (first > 20 ? 20 : first) : 10,
first: first && first > 0 ? (first > 20 ? 20 : first) : 20,
after,
},
);
Expand Down Expand Up @@ -361,7 +361,7 @@ export const getPostsByTag = async ({
>(PostsByTagDocument, {
host: HASHNODE_HOST,
tagSlug,
first: first && first > 0 ? (first > 20 ? 20 : first) : 10,
first: first && first > 0 ? (first > 20 ? 20 : first) : 20,
after,
});

Expand Down Expand Up @@ -396,7 +396,7 @@ export const getPostsBySeries = async ({
>(PostsBySeriesDocument, {
host: HASHNODE_HOST,
seriesSlug,
first: first && first > 0 ? (first > 20 ? 20 : first) : 10,
first: first && first > 0 ? (first > 20 ? 20 : first) : 20,
after,
});

Expand Down

0 comments on commit 012caaf

Please sign in to comment.