KSDaemon/sails-hook-sequelize

Error: Callback was already called

jbpineiroc opened this issue · 1 comments

When you set multiple database connections throw Error: Callback was already called. I think that the problem is in line 203 Promise.all(syncTasks).then(() => next()).catch(e => next(e));, it must be out of for (connectionName in datastores) statament scope.
Regards

Hi @jbpineiro ! Thanks for pointing! Indeed.