mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-29 04:55:03 +02:00
UBERF-5265: Fix workspace creation (#4499)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
+11
-1
@@ -211,7 +211,17 @@ export function devTool (
|
||||
.action(async (workspace, cmd) => {
|
||||
const { mongodbUri, txes, version, migrateOperations } = prepareTools()
|
||||
await withDatabase(mongodbUri, async (db) => {
|
||||
await createWorkspace(version, txes, migrateOperations, db, productId, cmd.email, cmd.workspaceName, workspace)
|
||||
const { client } = await createWorkspace(
|
||||
version,
|
||||
txes,
|
||||
migrateOperations,
|
||||
db,
|
||||
productId,
|
||||
cmd.email,
|
||||
cmd.workspaceName,
|
||||
workspace
|
||||
)
|
||||
await client?.close()
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user