From d9025d1aa1b4cd82e8bd46ae7e0c89a35540c224 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 30 Oct 2020 17:12:06 +0000 Subject: [PATCH] Getting rid of userInstanceMap, preparing for meat of auth update. --- packages/server/src/api/controllers/application.js | 1 - packages/server/src/api/controllers/user.js | 7 ------- 2 files changed, 8 deletions(-) diff --git a/packages/server/src/api/controllers/application.js b/packages/server/src/api/controllers/application.js index 66cde54fd6..1214ad43cb 100644 --- a/packages/server/src/api/controllers/application.js +++ b/packages/server/src/api/controllers/application.js @@ -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, diff --git a/packages/server/src/api/controllers/user.js b/packages/server/src/api/controllers/user.js index da0adff895..ba6adeb060 100644 --- a/packages/server/src/api/controllers/user.js +++ b/packages/server/src/api/controllers/user.js @@ -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