mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-02-02 09:48:13 -05:00
Fix #9 - Variable definition was incorrectly scoped
This commit is contained in:
parent
5dd723a864
commit
02b4def04a
@ -409,9 +409,9 @@ const internalCertificate = {
|
|||||||
* @returns {Promise}
|
* @returns {Promise}
|
||||||
*/
|
*/
|
||||||
writeCustomCert: certificate => {
|
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') {
|
if (certificate.provider === 'letsencrypt') {
|
||||||
reject(new Error('Refusing to write letsencrypt certs here'));
|
reject(new Error('Refusing to write letsencrypt certs here'));
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user