mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
strapi-hook-bookshelf: minor change for code clarity
This commit is contained in:
parent
8b6bfdae70
commit
b0a21b46f0
@ -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.
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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.
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user