diff --git a/src/backend/internal/certificate.js b/src/backend/internal/certificate.js index d5028ba1..90d6f11d 100644 --- a/src/backend/internal/certificate.js +++ b/src/backend/internal/certificate.js @@ -409,9 +409,9 @@ const internalCertificate = { * @returns {Promise} */ writeCustomCert: certificate => { - return new Promise((resolve, reject) => { - let dir = '/data/custom_ssl/npm-' + certificate.id; + let dir = '/data/custom_ssl/npm-' + certificate.id; + return new Promise((resolve, reject) => { if (certificate.provider === 'letsencrypt') { reject(new Error('Refusing to write letsencrypt certs here')); return;