Skip to content

Commit

Permalink
fix missed params injection into mongodb
Browse files Browse the repository at this point in the history
  • Loading branch information
huequica committed Feb 27, 2023
1 parent c77d5cc commit e577b32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const run = async (
export const mti = (params: RunnerParams): Promise<void> => {
const client = new MongoClient(params.uri, params.clientOptions);

return run(client, params.dbName, []).catch((...param) =>
console.dir(...param)
return run(client, params.dbName, params.insertCollections).catch(
(...param) => console.dir(...param)
);
};

Expand Down

0 comments on commit e577b32

Please sign in to comment.