We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4091963 commit 7f5417fCopy full SHA for 7f5417f
lib/connect-session-sequelize.js
@@ -57,7 +57,7 @@ module.exports = function SequelizeSessionInit (Store) {
57
debug('Using table: %s for sessions', this.options.table)
58
// Get Specifed Table from Sequelize Object
59
this.sessionModel =
60
- this.options.db[this.options.table] || this.options.db.models[this.options.table]
+ this.options.db.models[this.options.modelKey] || this.options.db[this.options.table] || this.options.db.models[this.options.table]
61
} else {
62
// No Table specified, default to ./model
63
debug('No table specified, using default table.')
0 commit comments