strapi-hook-bookshelf: minor change for code clarity

This commit is contained in:
Javier Castro 2018-12-12 12:35:16 -03:00
parent 8b6bfdae70
commit b0a21b46f0
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ module.exports = function(strapi) {
'config',
'functions',
'bookshelf.js'
))(ORM, strapi.connections[connectionName]);
))(ORM, connection);
} catch (err) {
// This is not an error if the file is not found.
}

View File

@ -98,7 +98,7 @@ module.exports = function (strapi) {
'config',
'functions',
'mongoose.js'
))(instance, strapi.config.connections[connectionName]);
))(instance, connection);
} catch (err) {
// This is not an error if the file is not found.
}