From e74c68595694b5e0c49e773be55fcb3b5dd36e35 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Wed, 3 Jun 2020 20:44:35 +0100 Subject: [PATCH] lint --- packages/builder/src/builderStore/loadComponentLibraries.js | 2 +- .../src/components/userInterface/temporaryPanelStructure.js | 6 +++--- packages/client/src/state/bbComponentApi.js | 2 +- packages/server/src/api/controllers/auth.js | 3 ++- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/builder/src/builderStore/loadComponentLibraries.js b/packages/builder/src/builderStore/loadComponentLibraries.js index f7ceec303f..9d534f86fe 100644 --- a/packages/builder/src/builderStore/loadComponentLibraries.js +++ b/packages/builder/src/builderStore/loadComponentLibraries.js @@ -1,4 +1,4 @@ -import { get } from "builderStore/api"; +import { get } from "builderStore/api" /** * Fetches the definitions for component library components. This includes diff --git a/packages/builder/src/components/userInterface/temporaryPanelStructure.js b/packages/builder/src/components/userInterface/temporaryPanelStructure.js index 747a71f10a..b1b4eaaa93 100644 --- a/packages/builder/src/components/userInterface/temporaryPanelStructure.js +++ b/packages/builder/src/components/userInterface/temporaryPanelStructure.js @@ -324,7 +324,7 @@ export default { key: "type", control: OptionSelect, options: [ - "column2d", + "column2d", "column3d", "line", "area2d", @@ -335,8 +335,8 @@ export default { "doughnut2d", "doughnut3d", "pareto2d", - "pareto3d" - ] + "pareto3d", + ], }, ], }, diff --git a/packages/client/src/state/bbComponentApi.js b/packages/client/src/state/bbComponentApi.js index e7a0412012..be918d3048 100644 --- a/packages/client/src/state/bbComponentApi.js +++ b/packages/client/src/state/bbComponentApi.js @@ -27,7 +27,7 @@ export const bbFactory = ({ method: method, headers: { "Content-Type": "application/json", - "x-user-agent": "Budibase Builder" + "x-user-agent": "Budibase Builder", }, body: body && JSON.stringify(body), }) diff --git a/packages/server/src/api/controllers/auth.js b/packages/server/src/api/controllers/auth.js index 80547200e5..de88c29643 100644 --- a/packages/server/src/api/controllers/auth.js +++ b/packages/server/src/api/controllers/auth.js @@ -12,7 +12,8 @@ exports.authenticate = async ctx => { // find the instance that the user is associated with const db = new CouchDB(ClientDb.name(env.CLIENT_ID)) - const app = await db.get(ctx.params.appId) + const appId = ctx.params.appId + const app = await db.get(appId) const instanceId = app.userInstanceMap[username] if (!instanceId)