On importCertToCa use serialNumber instead of dn to get the parentCa

This commit is contained in:
Carlos Monastyrski
2025-07-17 10:28:31 -03:00
parent fd761df8e5
commit c06c6c6c61
2 changed files with 3 additions and 3 deletions
@@ -218,7 +218,7 @@ export const certificateAuthorityDALFactory = (db: TDbClient) => {
};
const findWithAssociatedCa = async (
filter: Parameters<(typeof caOrm)["find"]>[0] & { dn?: string; type?: string },
filter: Parameters<(typeof caOrm)["find"]>[0] & { dn?: string; type?: string; serialNumber?: string },
{ offset, limit, sort = [["createdAt", "desc"]] }: TFindOpt<TCertificateAuthorities> = {},
tx?: Knex
) => {