Skip to content

Commit

Permalink
Merge pull request #653 from DevelopingSpace/main
Browse files Browse the repository at this point in the history
fix: Account for ACME order deduplication
  • Loading branch information
humphd authored Apr 20, 2023
2 parents 0516f72 + cf43254 commit 013a6a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/queues/certificate/certificate-error-handler.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ export const initCertificateErrorHandler = () => {

await certificateModel.updateCertificateById(certificateId, {
status: CertificateStatus.failed,
/**
* Setting orderUrl to null, so if we get back the same cert request from the
* ACME provider next time (as it deduplicates orders) we are not violating the
* unique constraint of this field
*/
orderUrl: null,
});

await challengeModel.deleteChallengesByCertificateId(certificateId);
Expand Down

0 comments on commit 013a6a9

Please sign in to comment.