@@ -388,7 +388,7 @@ const internalCertificate = {
388
388
zipFiles ( source , out ) {
389
389
const archive = archiver ( 'zip' , { zlib : { level : 9 } } ) ;
390
390
const stream = fs . createWriteStream ( out ) ;
391
-
391
+
392
392
return new Promise ( ( resolve , reject ) => {
393
393
source
394
394
. map ( ( fl ) => {
@@ -399,7 +399,7 @@ const internalCertificate = {
399
399
archive
400
400
. on ( 'error' , ( err ) => reject ( err ) )
401
401
. pipe ( stream ) ;
402
-
402
+
403
403
stream . on ( 'close' , ( ) => resolve ( ) ) ;
404
404
archive . finalize ( ) ;
405
405
} ) ;
@@ -477,7 +477,7 @@ const internalCertificate = {
477
477
// Query is used for searching
478
478
if ( typeof search_query === 'string' ) {
479
479
query . where ( function ( ) {
480
- this . where ( 'name ' , 'like' , '%' + search_query + '%' ) ;
480
+ this . where ( 'nice_name ' , 'like' , '%' + search_query + '%' ) ;
481
481
} ) ;
482
482
}
483
483
@@ -1140,7 +1140,7 @@ const internalCertificate = {
1140
1140
if ( domains . length === 0 ) {
1141
1141
throw new error . InternalValidationError ( 'No domains provided' ) ;
1142
1142
}
1143
-
1143
+
1144
1144
// Create a test challenge file
1145
1145
const testChallengeDir = '/data/letsencrypt-acme-challenge/.well-known/acme-challenge' ;
1146
1146
const testChallengeFile = testChallengeDir + '/test-challenge' ;
@@ -1215,7 +1215,7 @@ const internalCertificate = {
1215
1215
1216
1216
// Remove the test challenge file
1217
1217
fs . unlinkSync ( testChallengeFile ) ;
1218
-
1218
+
1219
1219
return results ;
1220
1220
}
1221
1221
} ;
0 commit comments