Add more missing columns

This commit is contained in:
Fang-Pen Lin
2025-11-07 09:18:40 -08:00
parent 0ed464308f
commit 9196e74437
3 changed files with 12 additions and 2 deletions
@@ -339,7 +339,11 @@ export const pkiAcmeServiceFactory = ({
const createdOrder = await acmeOrderDAL.create(
{
accountId: account.id,
status: AcmeOrderStatus.Pending
status: AcmeOrderStatus.Pending,
notBefore: payload.notBefore ? new Date(payload.notBefore) : undefined,
notAfter: payload.notAfter ? new Date(payload.notAfter) : undefined,
// TODO: read config from the profile to get the expiration time instead
expiresAt: new Date(Date.now() + 24 * 60 * 60 * 1000)
},
tx
);