From cc08b4fc4edfb9cf7538468929ef4bd0e343c2db Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 13 Jul 2021 17:28:05 +0100 Subject: [PATCH] Linting. --- packages/worker/src/api/controllers/admin/configs.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/worker/src/api/controllers/admin/configs.js b/packages/worker/src/api/controllers/admin/configs.js index 7e63592a38..55d2df6ee7 100644 --- a/packages/worker/src/api/controllers/admin/configs.js +++ b/packages/worker/src/api/controllers/admin/configs.js @@ -73,7 +73,9 @@ exports.find = async function (ctx) { const { userId, workspaceId } = ctx.query if (workspaceId && userId) { const workspace = await db.get(workspaceId) - const userInWorkspace = workspace.users.some(workspaceUser => workspaceUser === userId) + const userInWorkspace = workspace.users.some( + workspaceUser => workspaceUser === userId + ) if (!ctx.user.admin && !userInWorkspace) { ctx.throw(400, `User is not in specified workspace: ${workspace}.`) }