Fix move tool (#6948)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2024-10-16 00:19:26 +05:00 committed by GitHub
parent f8f140cc12
commit 81716f860a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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`)