mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-08 21:27:45 +03:00
Fix workspace upgrade (#426)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
b3c0db92c3
commit
0800f97f3c
@ -76,7 +76,7 @@ export async function upgradeWorkspace (mongoUrl: string, dbName: string, client
|
||||
const result = await db.collection(DOMAIN_TX).deleteMany({
|
||||
objectSpace: core.space.Model,
|
||||
modifiedBy: core.account.System,
|
||||
_class: { $ne: contact.class.EmployeeAccount }
|
||||
objectClass: { $ne: contact.class.EmployeeAccount }
|
||||
})
|
||||
console.log(`${result.deletedCount} transactions deleted.`)
|
||||
|
||||
@ -115,7 +115,7 @@ export async function dumpWorkspace (mongoUrl: string, dbName: string, fileName:
|
||||
resolve(null)
|
||||
})
|
||||
})
|
||||
const minioDbLocation = dbName + '.minio'
|
||||
const minioDbLocation = fileName + '.minio'
|
||||
if (!existsSync(minioDbLocation)) {
|
||||
await mkdir(minioDbLocation)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user