Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit bbcee87

Browse files
author
Manuel Proß
committed
fix(web): fetching of news
1 parent 257f9f7 commit bbcee87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/helpers/homepage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ export async function getNews(count: number = 5): Promise<NewsCollection> {
5050
const query = qs.stringify(
5151
{
5252
pagination: {
53-
pageSize: count,
54-
page: 1,
53+
limit: count,
5554
},
5655
},
5756
{
5857
encodeValuesOnly: true,
5958
}
6059
);
60+
6161
const response = await fetch(`${process.env.CMS_API}/newsposts?${query}`);
6262

6363
if (!response.ok) {

0 commit comments

Comments
 (0)