mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 22:27:48 +00:00
Fix types
This commit is contained in:
@@ -421,7 +421,7 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// POST /api/v1/pki/acme/profiles/<profile_id>/authorizations/<authz_id>/challenges/http-01
|
// POST /api/v1/pki/acme/profiles/<profile_id>/authorizations/<authz_id>/challenges/<challenge_id>
|
||||||
// Respond to Challenge (RFC 8555 Section 7.5.1)
|
// Respond to Challenge (RFC 8555 Section 7.5.1)
|
||||||
server.route({
|
server.route({
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
|||||||
@@ -388,7 +388,7 @@ export const pkiAcmeServiceFactory = ({
|
|||||||
// if we do, return the existing order
|
// if we do, return the existing order
|
||||||
|
|
||||||
const order = await acmeOrderDAL.transaction(async (tx) => {
|
const order = await acmeOrderDAL.transaction(async (tx) => {
|
||||||
const account = await acmeAccountDAL.findByProjectIdAndAccountId(profileId, accountId)!;
|
const account = (await acmeAccountDAL.findByProjectIdAndAccountId(profileId, accountId))!;
|
||||||
const createdOrder = await acmeOrderDAL.create(
|
const createdOrder = await acmeOrderDAL.create(
|
||||||
{
|
{
|
||||||
accountId: account.id,
|
accountId: account.id,
|
||||||
@@ -585,7 +585,7 @@ export const pkiAcmeServiceFactory = ({
|
|||||||
type: challenge.type,
|
type: challenge.type,
|
||||||
url: buildUrl(profileId, `/authorizations/${authzId}/challenges/${challenge.id}`),
|
url: buildUrl(profileId, `/authorizations/${authzId}/challenges/${challenge.id}`),
|
||||||
status: challenge.status,
|
status: challenge.status,
|
||||||
token: auth.token
|
token: auth.token!
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user