diff --git a/lib/transformer.ts b/lib/transformer.ts index ad11ebe..a5fc591 100755 --- a/lib/transformer.ts +++ b/lib/transformer.ts @@ -209,14 +209,14 @@ export const Transformer = { } if (config.uri) { // Sequelize modify options object - return new Sequelize(config.uri, Object.assign({}, config, { logging: logger })) + return new Sequelize(config.uri, Object.assign({}, { logging: logger }, config)) } else { return new Sequelize( config.database, config.username || process.env.POSTGRES_USER, config.password || process.env.POSTGRES_PASSWORD, - Object.assign({}, config, { logging: logger }) + Object.assign({}, { logging: logger }, config) ) } }, diff --git a/package-lock.json b/package-lock.json index 69b4871..1c91c13 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@fabrix/spool-sequelize", - "version": "1.1.10", + "version": "1.1.11", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index a19bb26..b96dc7a 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fabrix/spool-sequelize", - "version": "1.1.10", + "version": "1.1.11", "description": "Spool - Datastore Spool for Sequelize.js http://sequelizejs.com", "scripts": { "build": "tsc -p ./lib/tsconfig.release.json",