Fix workspace upgrade (#426)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2021-11-29 16:19:03 +01:00
committed by GitHub
parent b3c0db92c3
commit 0800f97f3c
+2 -2
View File
@@ -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)
}