@budibase/worker 3.13.26 → 3.13.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/worker",
3
3
  "email": "hi@budibase.com",
4
- "version": "3.13.26",
4
+ "version": "3.13.27",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -114,5 +114,5 @@
114
114
  }
115
115
  }
116
116
  },
117
- "gitHead": "9a55f2f9e6b196e6779a01425bb17a00b3643431"
117
+ "gitHead": "1e3a986059e06e95f7625d55720be7a609e1fff1"
118
118
  }
@@ -214,15 +214,6 @@ export const adminUser = async (
214
214
  const { email, password, tenantId, ssoId, givenName, familyName } =
215
215
  ctx.request.body
216
216
 
217
- if (await platform.tenants.exists(tenantId)) {
218
- ctx.throw(403, "Organisation already exists.")
219
- }
220
-
221
- if (env.MULTI_TENANCY) {
222
- // store the new tenant record in the platform db
223
- await platform.tenants.addTenant(tenantId)
224
- }
225
-
226
217
  await tenancy.doInTenant(tenantId, async () => {
227
218
  // account portal sends a pre-hashed password - honour param to prevent double hashing
228
219
  const hashPassword = parseBooleanParam(ctx.request.query.hashPassword)
@@ -4,7 +4,6 @@ import { quotas } from "@budibase/pro"
4
4
 
5
5
  export async function deleteTenant(tenantId: string) {
6
6
  await quotas.bustCache()
7
- await platform.tenants.removeTenant(tenantId)
8
7
  await removeTenantUsers(tenantId)
9
8
  await removeTenantApps(tenantId)
10
9
  await removeGlobalDB(tenantId)