Skip to content

Commit

Permalink
Merge pull request #15 from fabrix-app/v1.1
Browse files Browse the repository at this point in the history
[fix] logging should be able to be turned off
  • Loading branch information
scott-wyatt authored Aug 9, 2018
2 parents bd2a6eb + f30f8c7 commit c6bc01f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
}
},
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit c6bc01f

Please sign in to comment.