fix(core): update

This commit is contained in:
Philipp Kunz 2019-01-17 22:13:10 +01:00
parent 6cfcf21d95
commit f821f4d9cc

View File

@ -56,9 +56,11 @@ export class SmartAcme {
res: plugins.smartexpress.Response res: plugins.smartexpress.Response
) => { ) => {
const requestBody: interfaces.ICertRemoteRequest = req.body; const requestBody: interfaces.ICertRemoteRequest = req.body;
this.logger.log('ok', `got certificate request for ${requestBody.domainName}`);
const certDomain = this.certmatcher.getCertificateDomainNameByDomainName( const certDomain = this.certmatcher.getCertificateDomainNameByDomainName(
requestBody.domainName requestBody.domainName
); );
this.logger.log('ok', `mapping ${requestBody.domainName} to ${certDomain}`);
let status: interfaces.TCertStatus = await this.certmanager.getCertificateStatus(certDomain); let status: interfaces.TCertStatus = await this.certmanager.getCertificateStatus(certDomain);
let response: interfaces.ICertRemoteResponse; let response: interfaces.ICertRemoteResponse;
switch (status) { switch (status) {