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', 'config',
'functions', 'functions',
'bookshelf.js' 'bookshelf.js'
))(ORM, strapi.connections[connectionName]); ))(ORM, connection);
} catch (err) { } catch (err) {
// This is not an error if the file is not found. // This is not an error if the file is not found.
} }

View File

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