Skip to content

Commit

Permalink
increased pagination to 3000
Browse files Browse the repository at this point in the history
  • Loading branch information
kloovin112358 committed Nov 5, 2024
1 parent 2683afc commit 8dd53a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/builder-table.astro
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@
</div>

<script>
const itemsPerPage = 1000; // Matching the pageSize from the API response
const itemsPerPage = 3000; // Matching the pageSize from the API response
let packagesData = [];
let totalPages = 0;

async function fetchData() {
try {
const response = await fetch(
`https://cms.athenaos.org/api/builders?pagination[pageSize]=1000`,
`https://cms.athenaos.org/api/builders?pagination[pageSize]=3000`,
{
headers: {
Authorization: `Bearer f09f7250dc0a0113ec6bbfa5961e74da677d4454b0277a5074410e40e1fda4aadf37e82c52d7eeb811765427bd3306ac5a16cfb3850b99770630e45561f755c8fc3d543690368f7a2ba99d392e6fad63e5871186d28fdbec25d0372a988d84f21b5261c2bf74f8718d08589e78b9287e39e3a242d66b653baa68f8a9001f2dcb`,
Expand Down
4 changes: 2 additions & 2 deletions src/components/package-table.astro
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@
</div>

<script>
const itemsPerPage = 1000;
const itemsPerPage = 3000;

// Fetch all data from Strapi API
async function fetchAllData() {
try {
const response = await fetch(
`https://cms.athenaos.org/api/packages?pagination[pageSize]=1000`,
`https://cms.athenaos.org/api/packages?pagination[pageSize]=3000`,
{
headers: {
Authorization: `Bearer f09f7250dc0a0113ec6bbfa5961e74da677d4454b0277a5074410e40e1fda4aadf37e82c52d7eeb811765427bd3306ac5a16cfb3850b99770630e45561f755c8fc3d543690368f7a2ba99d392e6fad63e5871186d28fdbec25d0372a988d84f21b5261c2bf74f8718d08589e78b9287e39e3a242d66b653baa68f8a9001f2dcb`,
Expand Down

0 comments on commit 8dd53a7

Please sign in to comment.