Getting rid of userInstanceMap, preparing for meat of auth update.

This commit is contained in:
mike12345567 2020-10-30 17:12:06 +00:00
parent adac862ccd
commit d9025d1aa1
2 changed files with 0 additions and 8 deletions

View File

@ -70,7 +70,6 @@ exports.create = async function(ctx) {
const newApplication = {
_id: appId,
type: "app",
userInstanceMap: {},
version: packageJson.version,
componentLibraries: ["@budibase/standard-components"],
name: ctx.request.body.name,

View File

@ -39,13 +39,6 @@ exports.create = async function(ctx) {
const response = await db.post(user)
const app = await db.get(ctx.user.appId)
app.userInstanceMap = {
...app.userInstanceMap,
[username]: ctx.user.appId,
}
await db.put(app)
ctx.status = 200
ctx.message = "User created successfully."
ctx.userId = response._id