Fix type issues

This commit is contained in:
Tuan Dang
2024-12-03 22:38:29 -08:00
parent 3b2173a098
commit 00ce755996
6 changed files with 144 additions and 19 deletions
@@ -11,7 +11,6 @@ import { TSshCertificateAuthoritySecretDALFactory } from "@app/ee/services/ssh/s
import { TSshCertificateTemplateDALFactory } from "@app/ee/services/ssh-certificate-template/ssh-certificate-template-dal";
import { NotFoundError } from "@app/lib/errors";
import { TKmsServiceFactory } from "@app/services/kms/kms-service";
import { TProjectDALFactory } from "@app/services/project/project-dal";
import {
createSshCert,
@@ -39,7 +38,6 @@ type TSshCertificateAuthorityServiceFactoryDep = {
>;
sshCertificateAuthoritySecretDAL: Pick<TSshCertificateAuthoritySecretDALFactory, "create" | "findOne">;
sshCertificateTemplateDAL: Pick<TSshCertificateTemplateDALFactory, "find" | "getByName">;
projectDAL: Pick<TProjectDALFactory, "findProjectBySlug" | "findOne" | "updateById" | "findById" | "transaction">;
kmsService: Pick<TKmsServiceFactory, "generateKmsKey" | "encryptWithKmsKey" | "decryptWithKmsKey" | "getOrgKmsKeyId">;
permissionService: Pick<TPermissionServiceFactory, "getOrgPermission">;
};
-1
View File
@@ -808,7 +808,6 @@ export const registerRoutes = async (
projectRoleDAL,
folderDAL,
licenseService,
sshCertificateAuthorityDAL,
certificateAuthorityDAL,
certificateDAL,
pkiAlertDAL,