From bda0ad90ad1b3975935f30cd1932b9a62e413bdd Mon Sep 17 00:00:00 2001 From: Guillaume Ross Date: Fri, 10 Jun 2022 13:17:29 -0400 Subject: [PATCH] Fix linting issue (#6178) * Fix linting issue Removing a query that eslint is complaining about. Will fix next week - wether by adding ignore rules or figuring out a way to escape the tons of backslashes windows wants * Fix linting issue Putting query back in but with escaped backslashes, which should fix the linting issue and still work in the UI. --- frontend/utilities/constants.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/utilities/constants.ts b/frontend/utilities/constants.ts index ea98ed55cd..5cb59a62fa 100644 --- a/frontend/utilities/constants.ts +++ b/frontend/utilities/constants.ts @@ -162,9 +162,10 @@ export const DEFAULT_POLICIES = [ { key: 15, query: - "SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\InactivityTimeoutSecs' AND CAST(data as INTEGER) <= 1800;", + "SELECT 1 FROM registry WHERE path = 'HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\InactivityTimeoutSecs' AND CAST(data as INTEGER) <= 1800;", name: "Screen lock enabled (Windows)", - description: "Checks if the screen lock is enabled and configured to lock the system within 30 minutes or less.", + description: + "Checks if the screen lock is enabled and configured to lock the system within 30 minutes or less.", resolution: "Ask your IT administrator to enable the Interactive Logon: Machine inactivity limit setting with a value of 1800 seconds or lower.", platform: "windows",