Improve tenant generation

This commit is contained in:
Pedro Silva 2023-03-14 10:07:16 +00:00
parent 1fc46002e2
commit 55214876d8
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,8 @@ import { Hosting } from "@budibase/types"
export const generateAccount = (): Partial<NewAccount> => {
const randomGuid = generator.guid()
let tenant: string = "a" + randomGuid
//Needs to start with a letter
let tenant: string = "tenant" + randomGuid
tenant = tenant.replace(/-/g, "")
return {

View File

@ -5,7 +5,8 @@ import { Hosting } from "@budibase/types"
export const generateAccount = (): Partial<NewAccount> => {
const randomGuid = generator.guid()
let tenant: string = "a" + randomGuid
//Needs to start with a letter
let tenant: string = "tenant" + randomGuid
tenant = tenant.replace(/-/g, "")
return {