mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 20:27:12 +00:00
Fix linter error
This commit is contained in:
@@ -261,7 +261,7 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
|
|||||||
req
|
req
|
||||||
});
|
});
|
||||||
if (payload !== "") {
|
if (payload !== "") {
|
||||||
throw new AcmeMalformedError({ detail: "Payload should be empty" });
|
throw new AcmeMalformedError({ message: "Payload should be empty" });
|
||||||
}
|
}
|
||||||
return sendAcmeResponse(
|
return sendAcmeResponse(
|
||||||
res,
|
res,
|
||||||
@@ -373,7 +373,7 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
|
|||||||
req
|
req
|
||||||
});
|
});
|
||||||
if (payload !== "") {
|
if (payload !== "") {
|
||||||
throw new AcmeMalformedError({ detail: "Payload should be empty" });
|
throw new AcmeMalformedError({ message: "Payload should be empty" });
|
||||||
}
|
}
|
||||||
res.type("application/pem-certificate-chain");
|
res.type("application/pem-certificate-chain");
|
||||||
return sendAcmeResponse(
|
return sendAcmeResponse(
|
||||||
@@ -407,7 +407,7 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
|
|||||||
handler: async (req, res) => {
|
handler: async (req, res) => {
|
||||||
const { profileId, accountId, payload } = await validateExistingAccount({ req });
|
const { profileId, accountId, payload } = await validateExistingAccount({ req });
|
||||||
if (payload !== "") {
|
if (payload !== "") {
|
||||||
throw new AcmeMalformedError({ detail: "Payload should be empty" });
|
throw new AcmeMalformedError({ message: "Payload should be empty" });
|
||||||
}
|
}
|
||||||
return sendAcmeResponse(
|
return sendAcmeResponse(
|
||||||
res,
|
res,
|
||||||
|
|||||||
Reference in New Issue
Block a user