Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Fix return type
Fang-Pen Lin2fec9c3ee6f7
diff --git a/backend/src/ee/services/pki-acme/pki-acme-queue.ts b/backend/src/ee/services/pki-acme/pki-acme-queue.tsindex 2adef485ed..b070674cea 100644--- a/backend/src/ee/services/pki-acme/pki-acme-queue.ts+++ b/backend/src/ee/services/pki-acme/pki-acme-queue.ts@@ -9,6 +9,8 @@ type TPkiAcmeQueueServiceFactoryDep = {acmeChallengeService: TPkiAcmeChallengeServiceFactory;};+export type TPkiAcmeQueueServiceFactory = Awaited<ReturnType<typeof pkiAcmeQueueServiceFactory>>;+export const pkiAcmeQueueServiceFactory = async ({queueService,acmeChallengeService@@ -63,5 +65,3 @@ export const pkiAcmeQueueServiceFactory = async ({queueChallengeValidation};};--export type TPkiAcmeQueueServiceFactory = Awaited<ReturnType<typeof pkiAcmeQueueServiceFactory>>;diff --git a/backend/src/server/routes/index.ts b/backend/src/server/routes/index.tsindex 9aea9d5c16..ccf1b9a6cb 100644--- a/backend/src/server/routes/index.ts+++ b/backend/src/server/routes/index.ts@@ -81,6 +81,7 @@ import { pkiAcmeChallengeDALFactory } from "@app/ee/services/pki-acme/pki-acme-cimport { pkiAcmeChallengeServiceFactory } from "@app/ee/services/pki-acme/pki-acme-challenge-service";import { pkiAcmeOrderAuthDALFactory } from "@app/ee/services/pki-acme/pki-acme-order-auth-dal";import { pkiAcmeOrderDALFactory } from "@app/ee/services/pki-acme/pki-acme-order-dal";+import { pkiAcmeQueueServiceFactory } from "@app/ee/services/pki-acme/pki-acme-queue";import { pkiAcmeServiceFactory } from "@app/ee/services/pki-acme/pki-acme-service";import { projectTemplateDALFactory } from "@app/ee/services/project-template/project-template-dal";import { projectTemplateServiceFactory } from "@app/ee/services/project-template/project-template-service";@@ -374,7 +375,6 @@ import { initializeOauthConfigSync } from "./v1/sso-router";import { registerV2Routes } from "./v2";import { registerV3Routes } from "./v3";import { registerV4Routes } from "./v4";-import { pkiAcmeQueueServiceFactory } from "@app/ee/services/pki-acme/pki-acme-queue";const histogram = monitorEventLoopDelay({ resolution: 20 });histogram.enable();@@ -2256,7 +2256,7 @@ export const registerRoutes = async (acmeChallengeDAL});- const pkiAcmeQueueService = pkiAcmeQueueServiceFactory({+ const pkiAcmeQueueService = await pkiAcmeQueueServiceFactory({queueService,acmeChallengeService});