mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +03:00
Fix workspace upgrade in restore
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
c95b493a33
commit
b1dd2c515b
@ -114,6 +114,7 @@ export async function restoreWorkspace (
|
||||
elasticUrl: string,
|
||||
transactorUrl: string
|
||||
): Promise<void> {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user