ante-erp-cli 1.11.6 → 1.11.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/utils/mongodb.js +3 -3
package/package.json
CHANGED
package/src/utils/mongodb.js
CHANGED
|
@@ -310,7 +310,7 @@ export async function restoreDatabase(dumpDir, connectionInfo, dropBeforeRestore
|
|
|
310
310
|
await execa('docker', [
|
|
311
311
|
'cp',
|
|
312
312
|
dumpDir,
|
|
313
|
-
`ante-
|
|
313
|
+
`ante-mongodb:${containerDumpDir}`
|
|
314
314
|
], {
|
|
315
315
|
timeout: 120000 // 2 minute timeout for large files
|
|
316
316
|
});
|
|
@@ -322,7 +322,7 @@ export async function restoreDatabase(dumpDir, connectionInfo, dropBeforeRestore
|
|
|
322
322
|
'-f', composeFile,
|
|
323
323
|
'exec',
|
|
324
324
|
'-T',
|
|
325
|
-
'
|
|
325
|
+
'mongodb',
|
|
326
326
|
'mongorestore'
|
|
327
327
|
];
|
|
328
328
|
|
|
@@ -450,7 +450,7 @@ export async function verifyDataRestored(connectionInfo, composeFile = null) {
|
|
|
450
450
|
'-f', composeFile,
|
|
451
451
|
'exec',
|
|
452
452
|
'-T',
|
|
453
|
-
'
|
|
453
|
+
'mongodb',
|
|
454
454
|
'mongosh',
|
|
455
455
|
mongoUrl,
|
|
456
456
|
'--quiet',
|