1
0
Fork 0

typing fix

refactor/models
Matthew 2020-05-12 10:35:28 -04:00
parent a0479d1cff
commit f507131ae2
No known key found for this signature in database
GPG Key ID: D499B75C1390E321
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ export default class CWG_Create extends Command {
certs = { cert: certAndPrivateKey[0], key: certAndPrivateKey[1] }; certs = { cert: certAndPrivateKey[0], key: certAndPrivateKey[1] };
} else { } else {
// eslint-disable-next-line no-shadow
const certs: { cert?: string, key?: string } = {};
certs.cert = await fs.readFile('/etc/ssl/private/cloud-libraryofcode-org.chain.crt', { encoding: 'utf8' }); certs.cert = await fs.readFile('/etc/ssl/private/cloud-libraryofcode-org.chain.crt', { encoding: 'utf8' });
certs.key = await fs.readFile('/etc/ssl/private/cloud-libraryofcode-org.key', { encoding: 'utf8' }); certs.key = await fs.readFile('/etc/ssl/private/cloud-libraryofcode-org.key', { encoding: 'utf8' });
} }