Removed async/await as it had to impact

This commit is contained in:
Amit Yadav 2018-01-31 19:22:52 +05:30 committed by GitHub
parent 1edb583176
commit aabecd2fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);