Browse Source

lint

gh-pages
Martin McKeaveney 6 years ago
parent
commit
e74c685956
  1. 2
      packages/builder/src/builderStore/loadComponentLibraries.js
  2. 6
      packages/builder/src/components/userInterface/temporaryPanelStructure.js
  3. 2
      packages/client/src/state/bbComponentApi.js
  4. 3
      packages/server/src/api/controllers/auth.js

2
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 * Fetches the definitions for component library components. This includes

6
packages/builder/src/components/userInterface/temporaryPanelStructure.js

@ -324,7 +324,7 @@ export default {
key: "type", key: "type",
control: OptionSelect, control: OptionSelect,
options: [ options: [
"column2d", "column2d",
"column3d", "column3d",
"line", "line",
"area2d", "area2d",
@ -335,8 +335,8 @@ export default {
"doughnut2d", "doughnut2d",
"doughnut3d", "doughnut3d",
"pareto2d", "pareto2d",
"pareto3d" "pareto3d",
] ],
}, },
], ],
}, },

2
packages/client/src/state/bbComponentApi.js

@ -27,7 +27,7 @@ export const bbFactory = ({
method: method, method: method,
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
"x-user-agent": "Budibase Builder" "x-user-agent": "Budibase Builder",
}, },
body: body && JSON.stringify(body), body: body && JSON.stringify(body),
}) })

3
packages/server/src/api/controllers/auth.js

@ -12,7 +12,8 @@ exports.authenticate = async ctx => {
// find the instance that the user is associated with // find the instance that the user is associated with
const db = new CouchDB(ClientDb.name(env.CLIENT_ID)) 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] const instanceId = app.userInstanceMap[username]
if (!instanceId) if (!instanceId)

Loading…
Cancel
Save