mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 10:26:35 +00:00
Address greptile comments
This commit is contained in:
@@ -24,13 +24,11 @@ export type TCertificate = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type TDeleteCertDTO = {
|
export type TDeleteCertDTO = {
|
||||||
projectSlug: string;
|
|
||||||
projectId: string;
|
projectId: string;
|
||||||
serialNumber: string;
|
serialNumber: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type TRevokeCertDTO = {
|
export type TRevokeCertDTO = {
|
||||||
projectSlug: string;
|
|
||||||
projectId: string;
|
projectId: string;
|
||||||
serialNumber: string;
|
serialNumber: string;
|
||||||
revocationReason: string;
|
revocationReason: string;
|
||||||
|
|||||||
-1
@@ -53,7 +53,6 @@ export const CertificateRevocationModal = ({ popUp, handlePopUpToggle }: Props)
|
|||||||
const { serialNumber } = popUp.revokeCertificate.data as { serialNumber: string };
|
const { serialNumber } = popUp.revokeCertificate.data as { serialNumber: string };
|
||||||
|
|
||||||
await revokeCertificate({
|
await revokeCertificate({
|
||||||
projectSlug: currentProject.slug,
|
|
||||||
projectId: currentProject.id,
|
projectId: currentProject.id,
|
||||||
serialNumber,
|
serialNumber,
|
||||||
revocationReason
|
revocationReason
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ export const CertificatesSection = () => {
|
|||||||
|
|
||||||
await deleteCert({
|
await deleteCert({
|
||||||
serialNumber,
|
serialNumber,
|
||||||
projectSlug: currentProject.slug,
|
|
||||||
projectId: currentProject.id
|
projectId: currentProject.id
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user