From 56d117c81979d4f1cc8cd3e55fbc6a89fbdb690b Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Wed, 12 May 2021 12:38:49 +0100 Subject: [PATCH] fixes from PR --- .../builder/src/components/integration/QueryEditor.svelte | 2 +- packages/worker/src/api/index.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/builder/src/components/integration/QueryEditor.svelte b/packages/builder/src/components/integration/QueryEditor.svelte index 02f3218850..4016e2c1b2 100644 --- a/packages/builder/src/components/integration/QueryEditor.svelte +++ b/packages/builder/src/components/integration/QueryEditor.svelte @@ -117,7 +117,7 @@ readOnly, autoCloseBrackets: true, autoCloseTags: true, - theme: THEMES.DARK, + theme: $themeStore.theme.includes("light") ? THEMES.LIGHT : THEMES.DARK, } if (!tab) diff --git a/packages/worker/src/api/index.js b/packages/worker/src/api/index.js index 6c4cd98a12..4142d0a832 100644 --- a/packages/worker/src/api/index.js +++ b/packages/worker/src/api/index.js @@ -53,9 +53,9 @@ router .use(buildAuthMiddleware(PUBLIC_ENDPOINTS)) // for now no public access is allowed to worker (bar health check) .use((ctx, next) => { - // if (!ctx.isAuthenticated) { - // ctx.throw(403, "Unauthorized - no public worker access") - // } + if (!ctx.isAuthenticated) { + ctx.throw(403, "Unauthorized - no public worker access") + } return next() })