fix(core): update
This commit is contained in:
parent
cbdb0c8b08
commit
f2eb9666a7
@ -141,11 +141,12 @@ export class SmartAcme {
|
||||
|
||||
public async getCertificateForDomain(domainArg: string): Promise<Cert> {
|
||||
const certDomain = this.certmatcher.getCertificateDomainNameByDomainName(domainArg);
|
||||
await this.certmanager.announceCertificate(certDomain);
|
||||
const retrievedCertificate = await this.certmanager.retrieveCertificate(certDomain);
|
||||
|
||||
if (retrievedCertificate) {
|
||||
return retrievedCertificate;
|
||||
} else {
|
||||
await this.certmanager.announceCertificate(certDomain);
|
||||
}
|
||||
|
||||
/* Place new order */
|
||||
|
Loading…
Reference in New Issue
Block a user