Skip to content

Commit cfa634c

Browse files
committed
chore: mongodump command
1 parent aab21c3 commit cfa634c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/src/dump.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const dump = async (dumpKey: string, _name?: string) => {
5757
const mongoUrl = new URL(config.mongo.url)
5858
mongoUrl.searchParams.set('readPreference', config.mongo.readPreference)
5959
mongoUrl.pathname = '/' + db
60-
let cmd = `mongodump --uri ${mongoUrl.href} --gzip --archive=${tmpPath}`
60+
let cmd = `mongodump --gzip --archive=${tmpPath} --uri ${mongoUrl.href}`
6161
if (config.mongo.dumpParams && config.mongo.dumpParams[db]) {
6262
cmd += ` ${config.mongo.dumpParams[db]}`
6363
}

0 commit comments

Comments
 (0)