This commit is contained in:
Martin McKeaveney 2020-06-03 20:44:35 +01:00
parent 1f64bf8d16
commit 18ad679d21
4 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,4 @@
import { get } from "builderStore/api";
import { get } from "builderStore/api"
/**
* Fetches the definitions for component library components. This includes

View File

@ -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",
],
},
],
},

View File

@ -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),
})

View File

@ -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)