mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-27 01:13:27 +03:00
Fix move tool (#6948)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
f8f140cc12
commit
81716f860a
@ -1598,7 +1598,7 @@ export function devTool (
|
||||
throw new Error('mongodbUri is not set')
|
||||
}
|
||||
|
||||
await withDatabase(dbUrl, async (db) => {
|
||||
await withDatabase(mongodbUri, async (db) => {
|
||||
const workspaces = await listWorkspacesRaw(db)
|
||||
workspaces.sort((a, b) => b.lastVisit - a.lastVisit)
|
||||
await moveFromMongoToPG(
|
||||
@ -1617,7 +1617,7 @@ export function devTool (
|
||||
throw new Error('mongodbUri is not set')
|
||||
}
|
||||
|
||||
await withDatabase(dbUrl, async (db) => {
|
||||
await withDatabase(mongodbUri, async (db) => {
|
||||
const workspaceInfo = await getWorkspaceById(db, workspace)
|
||||
if (workspaceInfo === null) {
|
||||
throw new Error(`workspace ${workspace} not found`)
|
||||
|
Loading…
Reference in New Issue
Block a user