Skip to content

Commit

Permalink
use correct db in imports
Browse files Browse the repository at this point in the history
  • Loading branch information
allanchau committed Aug 6, 2024
1 parent 4681232 commit ecd9635
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/c-mongo-import
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ usage() {
printf "\tImport all or a specific collection from a Mongo database download to another environment.\n"
printf "\tIf you don't provide a collection, all will be imported.\n\n"
printf "\tOptions:\n\n"
printf "\t-h, --help Display this help message\n\n"
printf "\t-h, --help Display this help message\n\n"
printf "\t-t, --to <env> The import destination (defaults to local)."
}

Expand Down
2 changes: 1 addition & 1 deletion bin/c-mongo-import-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const connectionStringWithHost = ({ auth, host, name, params }) => {
? connectionStringWithHost(toDbConnection)
: connectionStringWithAddress(toDbConnection),
collectionArg,
`data/${toDb.name}`
`data/${fromDb.name}`
);

console.log(
Expand Down

0 comments on commit ecd9635

Please sign in to comment.