diff --git a/AdminDashboard/Serve.ts b/AdminDashboard/Serve.ts index 3cc0758f17..e7a2a6dc12 100755 --- a/AdminDashboard/Serve.ts +++ b/AdminDashboard/Serve.ts @@ -35,7 +35,9 @@ const ensureMasterAdminAccess: EnsureMasterAdminAccessFunction = async ( Response.sendErrorResponse( req, res, - new NotAuthorizedException("Unauthorized: Only master admins can access the admin dashboard."), + new NotAuthorizedException( + "Unauthorized: Only master admins can access the admin dashboard.", + ), ); return {}; } @@ -46,7 +48,9 @@ const ensureMasterAdminAccess: EnsureMasterAdminAccessFunction = async ( Response.sendErrorResponse( req, res, - new NotAuthorizedException("Unauthorized: Only master admins can access the admin dashboard."), + new NotAuthorizedException( + "Unauthorized: Only master admins can access the admin dashboard.", + ), ); return {}; } @@ -57,7 +61,9 @@ const ensureMasterAdminAccess: EnsureMasterAdminAccessFunction = async ( Response.sendErrorResponse( req, res, - new NotAuthorizedException("Unauthorized: Only master admins can access the admin dashboard."), + new NotAuthorizedException( + "Unauthorized: Only master admins can access the admin dashboard.", + ), ); return {}; } diff --git a/Nginx/Jobs/WriteServerCertToDisk.ts b/Nginx/Jobs/WriteServerCertToDisk.ts index b0aa0a657e..a7c435d349 100644 --- a/Nginx/Jobs/WriteServerCertToDisk.ts +++ b/Nginx/Jobs/WriteServerCertToDisk.ts @@ -77,10 +77,11 @@ export default class WriteServerCertToDiskJob { (await LocalFile.doesFileExist(certificatePath)) ? await LocalFile.read(certificatePath) : null; - const existingKey: string | null = - (await LocalFile.doesFileExist(keyPath)) - ? await LocalFile.read(keyPath) - : null; + const existingKey: string | null = (await LocalFile.doesFileExist( + keyPath, + )) + ? await LocalFile.read(keyPath) + : null; const certificateChanged: boolean = existingCertificate !== certificatePem || diff --git a/Nginx/Utils/NginxConfigurator.ts b/Nginx/Utils/NginxConfigurator.ts index e60fb24fbd..4c00096235 100644 --- a/Nginx/Utils/NginxConfigurator.ts +++ b/Nginx/Utils/NginxConfigurator.ts @@ -25,8 +25,7 @@ export default class NginxConfigurator { return; } - const certificateDirective: string = - `ssl_certificate /etc/nginx/certs/ServerCerts/${normalizedHost}.crt;`; + const certificateDirective: string = `ssl_certificate /etc/nginx/certs/ServerCerts/${normalizedHost}.crt;`; let nginxConfig: string = ""; try { @@ -38,11 +37,11 @@ export default class NginxConfigurator { logger.debug(err); } - const templateHasDirective: boolean = nginxConfig.includes( - certificateDirective, - ); + const templateHasDirective: boolean = + nginxConfig.includes(certificateDirective); const shouldRefreshTemplate: boolean = !templateHasDirective; - const shouldReload: boolean = options.forceReload === true || shouldRefreshTemplate; + const shouldReload: boolean = + options.forceReload === true || shouldRefreshTemplate; if (!shouldReload) { return;