From e8a1c802cdb2d37d497ac54b2178bd372d6c06ec Mon Sep 17 00:00:00 2001 From: hirsch Date: Sat, 18 Apr 2020 10:15:34 +0200 Subject: [PATCH] fix: change setConnectionOptions argument to partial --- package.json | 2 +- src/connection.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index eafda2a8..266f1094 100644 --- a/package.json +++ b/package.json @@ -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 (https://github.com/hirsch88)", diff --git a/src/connection.ts b/src/connection.ts index 073bec12..53888018 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -44,7 +44,7 @@ export const configureConnection = (option: ConfigureOption = {}) => { } } -export const setConnectionOptions = (options: TypeORMConnectionOptions): void => { +export const setConnectionOptions = (options: Partial): void => { ;(global as any)[KEY].overrideConnectionOptions = options }