mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +03:00
UBERF-5350: Fix workspace name create issue (#4555)
This commit is contained in:
parent
6357efda60
commit
9b6c342656
@ -639,7 +639,7 @@ async function generateWorkspaceRecord (
|
||||
return { _id: id.insertedId, ...data }
|
||||
}
|
||||
const workspaceUrlPrefix = stripId(workspaceName)
|
||||
const workspaceIdPrefix = stripId(getEmailName(email)).slice(0, 12) + '-' + workspaceUrlPrefix.slice(12)
|
||||
const workspaceIdPrefix = stripId(getEmailName(email)).slice(0, 12) + '-' + workspaceUrlPrefix.slice(0, 12)
|
||||
let iteration = 0
|
||||
let idPostfix = generateId('-')
|
||||
let urlPostfix = ''
|
||||
|
@ -47,8 +47,9 @@ export async function startCollaborator (): Promise<void> {
|
||||
const shutdown = await start(metricsContext, config, minioClient, mongoClient)
|
||||
|
||||
const close = (): void => {
|
||||
void mongoClient.close()
|
||||
void shutdown()
|
||||
void shutdown().then(() => {
|
||||
void mongoClient.close()
|
||||
})
|
||||
}
|
||||
|
||||
process.on('uncaughtException', (e) => {
|
||||
|
Loading…
Reference in New Issue
Block a user