From 92be3f07c9dae1dd0fe78072ce5e0f08bd20c191 Mon Sep 17 00:00:00 2001 From: Samuel Denis-D'Ortun Date: Mon, 18 Oct 2021 14:55:25 -0400 Subject: [PATCH] style: Re-Run Prettier on master --- src/Adapters/Storage/Postgres/PostgresClient.js | 2 +- src/Security/CheckGroups/CheckGroupDatabase.js | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Adapters/Storage/Postgres/PostgresClient.js b/src/Adapters/Storage/Postgres/PostgresClient.js index b436945249..16a9564c29 100644 --- a/src/Adapters/Storage/Postgres/PostgresClient.js +++ b/src/Adapters/Storage/Postgres/PostgresClient.js @@ -20,7 +20,7 @@ export function createClient(uri, databaseOptions) { if (process.env.PARSE_SERVER_LOG_LEVEL === 'debug') { const monitor = require('pg-monitor'); - if(monitor.isAttached()) { + if (monitor.isAttached()) { monitor.detach(); } monitor.attach(initOptions); diff --git a/src/Security/CheckGroups/CheckGroupDatabase.js b/src/Security/CheckGroups/CheckGroupDatabase.js index d0da79a4ba..f9b9340eb1 100644 --- a/src/Security/CheckGroups/CheckGroupDatabase.js +++ b/src/Security/CheckGroups/CheckGroupDatabase.js @@ -8,9 +8,9 @@ import Config from '../../Config'; import Parse from 'parse/node'; /** -* The security checks group for Parse Server configuration. -* Checks common Parse Server parameters such as access keys. -*/ + * The security checks group for Parse Server configuration. + * Checks common Parse Server parameters such as access keys. + */ class CheckGroupDatabase extends CheckGroup { setName() { return 'Database'; @@ -23,7 +23,8 @@ class CheckGroupDatabase extends CheckGroup { new Check({ title: 'Secure database password', warning: 'The database password is insecure and vulnerable to brute force attacks.', - solution: 'Choose a longer and/or more complex password with a combination of upper- and lowercase characters, numbers and special characters.', + solution: + 'Choose a longer and/or more complex password with a combination of upper- and lowercase characters, numbers and special characters.', check: () => { const password = databaseUrl.match(/\/\/\S+:(\S+)@/)[1]; const hasUpperCase = /[A-Z]/.test(password);