@@ -388,7 +388,7 @@ const internalCertificate = {
388388 zipFiles ( source , out ) {
389389 const archive = archiver ( 'zip' , { zlib : { level : 9 } } ) ;
390390 const stream = fs . createWriteStream ( out ) ;
391-
391+
392392 return new Promise ( ( resolve , reject ) => {
393393 source
394394 . map ( ( fl ) => {
@@ -399,7 +399,7 @@ const internalCertificate = {
399399 archive
400400 . on ( 'error' , ( err ) => reject ( err ) )
401401 . pipe ( stream ) ;
402-
402+
403403 stream . on ( 'close' , ( ) => resolve ( ) ) ;
404404 archive . finalize ( ) ;
405405 } ) ;
@@ -477,7 +477,7 @@ const internalCertificate = {
477477 // Query is used for searching
478478 if ( typeof search_query === 'string' ) {
479479 query . where ( function ( ) {
480- this . where ( 'name ' , 'like' , '%' + search_query + '%' ) ;
480+ this . where ( 'nice_name ' , 'like' , '%' + search_query + '%' ) ;
481481 } ) ;
482482 }
483483
@@ -1140,7 +1140,7 @@ const internalCertificate = {
11401140 if ( domains . length === 0 ) {
11411141 throw new error . InternalValidationError ( 'No domains provided' ) ;
11421142 }
1143-
1143+
11441144 // Create a test challenge file
11451145 const testChallengeDir = '/data/letsencrypt-acme-challenge/.well-known/acme-challenge' ;
11461146 const testChallengeFile = testChallengeDir + '/test-challenge' ;
@@ -1215,7 +1215,7 @@ const internalCertificate = {
12151215
12161216 // Remove the test challenge file
12171217 fs . unlinkSync ( testChallengeFile ) ;
1218-
1218+
12191219 return results ;
12201220 }
12211221} ;
0 commit comments