mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
fixed linting
This commit is contained in:
parent
e5a3b5ee2f
commit
7b67ef3015
@ -342,21 +342,21 @@ const internalCertificate = {
|
|||||||
* @returns {Promise}
|
* @returns {Promise}
|
||||||
*/
|
*/
|
||||||
download: (data) => {
|
download: (data) => {
|
||||||
const downloadName = "npm-" + data.id + "-" + `${Date.now()}.zip`;
|
const downloadName = 'npm-' + data.id + '-' + `${Date.now()}.zip`;
|
||||||
const opName = '/tmp/' + downloadName;
|
const opName = '/tmp/' + downloadName;
|
||||||
const zipDirectory = "/etc/letsencrypt/live/npm-" + data.id
|
const zipDirectory = '/etc/letsencrypt/live/npm-' + data.id;
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
internalCertificate.zipDirectory(zipDirectory, opName)
|
internalCertificate.zipDirectory(zipDirectory, opName)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
logger.debug("zip completed : ", opName)
|
logger.debug('zip completed : ', opName);
|
||||||
const resp = {
|
const resp = {
|
||||||
fileName: opName
|
fileName: opName
|
||||||
}
|
};
|
||||||
resolve(resp)
|
resolve(resp);
|
||||||
}).catch(err => {
|
}).catch((err) => {
|
||||||
reject(err)
|
reject(err);
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -372,7 +372,7 @@ const internalCertificate = {
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
archive
|
archive
|
||||||
.directory(source, false)
|
.directory(source, false)
|
||||||
.on('error', err => reject(err))
|
.on('error', (err) => reject(err))
|
||||||
.pipe(stream);
|
.pipe(stream);
|
||||||
|
|
||||||
stream.on('close', () => resolve());
|
stream.on('close', () => resolve());
|
||||||
|
Loading…
Reference in New Issue
Block a user