Skip to content

Commit

Permalink
Merge pull request #59 from w3tecch/fix/set-connection
Browse files Browse the repository at this point in the history
fix: change setConnectionOptions argument to partial
  • Loading branch information
Gery Hirschfeld authored Apr 18, 2020
2 parents cce10e6 + e8a1c80 commit b8c396a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typeorm-seeding",
"version": "1.4.4",
"version": "1.6.0",
"description": "🌱 A delightful way to seed test data into your database.",
"license": "MIT",
"author": "Gery Hirschfeld <[email protected]> (https://github.com/hirsch88)",
Expand Down
2 changes: 1 addition & 1 deletion src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const configureConnection = (option: ConfigureOption = {}) => {
}
}

export const setConnectionOptions = (options: TypeORMConnectionOptions): void => {
export const setConnectionOptions = (options: Partial<TypeORMConnectionOptions>): void => {
;(global as any)[KEY].overrideConnectionOptions = options
}

Expand Down

0 comments on commit b8c396a

Please sign in to comment.