misc: addressed type

This commit is contained in:
Sheen Capadngan
2025-05-17 22:39:43 +08:00
parent 56b7328231
commit 260679b01d
3 changed files with 25 additions and 38 deletions
@@ -53,17 +53,16 @@ export const registerCaRouter = async (server: FastifyZodProvider) => {
req.permission
);
// await server.services.auditLog.createAuditLog({
// ...req.auditLogInfo,
// projectId: ca.projectId,
// event: {
// type: EventType.GET_CA,
// metadata: {
// caId: ca.id,
// dn: ca.dn
// }
// }
// });
await server.services.auditLog.createAuditLog({
...req.auditLogInfo,
projectId: req.query.projectId,
event: {
type: EventType.GET_CAS,
metadata: {
caIds: [...(internalCas ?? []).map((ca) => ca.id), ...(acmeCas ?? []).map((ca) => ca.id)]
}
}
});
return {
certificateAuthorities: [...(internalCas ?? []), ...(acmeCas ?? [])]