Improve tenant generation
This commit is contained in:
parent
1fc46002e2
commit
55214876d8
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue