From b0c0f6a0ff121c46acbc2ec1b535020773aaeed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Soulas?= Date: Wed, 10 Jul 2024 16:00:26 +0200 Subject: [PATCH] chore(api): remove unused exports in api/infra --- packages/reva-api/infra/cron.ts | 2 +- packages/reva-api/infra/server/plugins/keycloak-plugin.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/reva-api/infra/cron.ts b/packages/reva-api/infra/cron.ts index 254bf5559..c09a38e2f 100644 --- a/packages/reva-api/infra/cron.ts +++ b/packages/reva-api/infra/cron.ts @@ -78,7 +78,7 @@ const aapListUnifvae = CronJob.from({ timeZone: "Europe/Paris", }); -export async function runBatchIfActive({ +async function runBatchIfActive({ batchKey, batchCallback, }: { diff --git a/packages/reva-api/infra/server/plugins/keycloak-plugin.ts b/packages/reva-api/infra/server/plugins/keycloak-plugin.ts index 3f6e06322..11f0e7f0b 100644 --- a/packages/reva-api/infra/server/plugins/keycloak-plugin.ts +++ b/packages/reva-api/infra/server/plugins/keycloak-plugin.ts @@ -15,7 +15,7 @@ declare module "fastify" { } } -export interface KeycloakConnectUserInfo { +interface KeycloakConnectUserInfo { realm_access?: { roles: KeyCloakUserRole[]; };