Skip to content

Commit

Permalink
Fix error when using require
Browse files Browse the repository at this point in the history
  • Loading branch information
rafiss committed Jan 11, 2022
1 parent 7cabe7c commit 2962d61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -43,7 +43,7 @@
"mocha": "^8.2.0",
"p-timeout": "^4.1.0",
"prettier": "2.2.1",
"sequelize": "^6.3.5",
"sequelize": "^6.13.0",
"sinon": "^9.2.4",
"sinon-chai": "^3.5.0"
},
Expand Down
2 changes: 1 addition & 1 deletion source/index.js
Expand Up @@ -51,7 +51,7 @@ if (semver.satisfies(sequelizeVersion, '5.x')) {

//// [2] Disable `EXCEPTION` support

const PostgresDialect = require('sequelize/lib/dialects/postgres');
const PostgresDialect = require('sequelize/lib/dialects/postgres/index');
// This prevents, for example, usage of CREATE/REPLACE FUNCTION when using Model.findOrCreate()
PostgresDialect.prototype.supports.EXCEPTION = false;

Expand Down

0 comments on commit 2962d61

Please sign in to comment.