Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

removed undefined type

Sheen Capadngan4bc9bca28797
diff --git a/backend/src/services/integration-auth/integration-team.ts b/backend/src/services/integration-auth/integration-team.ts
index ccbbb72e7f..d738625e23 100644
--- a/backend/src/services/integration-auth/integration-team.ts
+++ b/backend/src/services/integration-auth/integration-team.ts
@@ -13,7 +13,7 @@ const getTeamsGitLab = async ({ url, accessToken }: { url: string; accessToken:
const gitLabApiUrl = url ? `${url}/api` : IntegrationUrls.GITLAB_API_URL;
let teams: Team[] = [];
- let page: number | undefined = 1;
+ let page: number = 1;
while (page > 0) {
// eslint-disable-next-line no-await-in-loop
const { data, headers }: AxiosResponse<{ name: string; id: string }[]> = await request.get(
@@ -26,7 +26,7 @@ const getTeamsGitLab = async ({ url, accessToken }: { url: string; accessToken:
}
);
- page = Number(headers["x-next-page"]);
+ page = Number(headers["x-next-page"] ?? "");
teams = teams.concat(
data.map((t) => ({
name: t.name,