diff --git a/dev/tool/src/workspace.ts b/dev/tool/src/workspace.ts index b389057634..1db9e8b7d4 100644 --- a/dev/tool/src/workspace.ts +++ b/dev/tool/src/workspace.ts @@ -114,6 +114,7 @@ export async function restoreWorkspace ( elasticUrl: string, transactorUrl: string ): Promise { + console.log('Restoring workspace', mongoUrl, dbName, fileName) const client = new MongoClient(mongoUrl) try { await client.connect() @@ -161,7 +162,7 @@ export async function restoreWorkspace ( } } - await upgradeModel(dbName, transactorUrl) + await upgradeModel(transactorUrl, dbName) await rebuildElastic(mongoUrl, dbName, minio, elasticUrl) } finally {