1
0
Fork 0
mirror of synced 2024-07-03 21:40:55 +12:00

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 {