This commit is contained in:
Martin McKeaveney 2020-06-03 20:44:35 +01:00
parent 71f9b4f832
commit e74c685956
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 * Fetches the definitions for component library components. This includes

View File

@ -335,8 +335,8 @@ export default {
"doughnut2d", "doughnut2d",
"doughnut3d", "doughnut3d",
"pareto2d", "pareto2d",
"pareto3d" "pareto3d",
] ],
}, },
], ],
}, },

View File

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

View File

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