fix: addressed rabbit findings

This commit is contained in:
Sheen Capadngan
2025-02-19 17:16:02 +08:00
parent 1db8c9ea29
commit f0e6bcef9b
14 changed files with 38 additions and 29 deletions
@@ -236,7 +236,7 @@ export const registerKmipOperationRouter = async (server: FastifyZodProvider) =>
},
onRequest: verifyAuth([AuthMode.IDENTITY_ACCESS_TOKEN]),
handler: async (req) => {
const object = await server.services.kmipOperation.deleteOp({
const object = await server.services.kmipOperation.destroy({
...req.kmipUser,
actor: req.permission.type,
actorId: req.permission.id,
@@ -255,7 +255,7 @@ export const registerKmipOperationRouter = async (server: FastifyZodProvider) =>
}
},
event: {
type: EventType.KMIP_OPERATION_DELETE,
type: EventType.KMIP_OPERATION_DESTROY,
metadata: {
id: object.id
}
+8
View File
@@ -61,6 +61,8 @@ export const registerKmipRouter = async (server: FastifyZodProvider) => {
}
}
});
return kmipClient;
}
});
@@ -107,6 +109,8 @@ export const registerKmipRouter = async (server: FastifyZodProvider) => {
}
}
});
return kmipClient;
}
});
@@ -145,6 +149,8 @@ export const registerKmipRouter = async (server: FastifyZodProvider) => {
}
}
});
return kmipClient;
}
});
@@ -183,6 +189,8 @@ export const registerKmipRouter = async (server: FastifyZodProvider) => {
}
}
});
return kmipClient;
}
});