mirror of
https://github.com/strapi/strapi.git
synced 2025-09-03 13:50:38 +00:00
Removed async/await as it had to impact
This commit is contained in:
parent
1edb583176
commit
aabecd2fec
@ -40,10 +40,10 @@ module.exports = function(strapi) {
|
|||||||
* Initialize the hook
|
* Initialize the hook
|
||||||
*/
|
*/
|
||||||
|
|
||||||
initialize: async cb => {
|
initialize: cb => {
|
||||||
const connections = _.pickBy(strapi.config.connections, { connector: 'strapi-bookshelf' });
|
const connections = _.pickBy(strapi.config.connections, { connector: 'strapi-bookshelf' });
|
||||||
|
|
||||||
await _.forEach(connections, (connection, connectionName) => {
|
_.forEach(connections, (connection, connectionName) => {
|
||||||
// Apply defaults
|
// Apply defaults
|
||||||
_.defaults(connection.settings, strapi.config.hook.settings.bookshelf);
|
_.defaults(connection.settings, strapi.config.hook.settings.bookshelf);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user