Skip to content

Commit

Permalink
Add limit & offset to Personio employees calls
Browse files Browse the repository at this point in the history
  • Loading branch information
monachilada committed Oct 23, 2024
1 parent 83eb2d0 commit 32452b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/apis/personio/PersonioApiController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ export async function initializePersonioApi(
const url = new URL(PERSONIO_EMPLOYEES_URL);
const mailAddress = `${username}@${DIGITALSERVICE_MAIL_DOMAIN}`;
url.searchParams.set("email", mailAddress);
url.searchParams.set("limit", "1");
url.searchParams.set("offset", "0");

let employeeData = await fetchWithPersonioAuth(url);

Expand Down

0 comments on commit 32452b5

Please sign in to comment.