{"size": 481, "ext": "js", "max_stars_repo_path": "methods/syncAllForce.js", "max_stars_repo_name": "tahsinature/sequelize-utility", "max_stars_repo_stars_event_min_datetime": "2019-11-21T11:12:04.000Z", "max_stars_repo_stars_event_max_datetime": "2020-04-27T21:50:15.000Z", "max_issues_repo_path": "methods/syncAllForce.js", "max_issues_repo_name": "saefullohmaslul/sequelize-utility", "max_issues_repo_issues_event_min_datetime": "2019-11-25T06:34:24.000Z", "max_issues_repo_issues_event_max_datetime": "2019-11-25T06:34:24.000Z", "max_forks_repo_path": "methods/syncAllForce.js", "max_forks_repo_name": "saefullohmaslul/sequelize-utility", "max_forks_repo_forks_event_min_datetime": "2019-11-25T06:29:33.000Z", "max_forks_repo_forks_event_max_datetime": "2020-04-08T03:21:56.000Z"}
{"max_stars_count": 4, "max_issues_count": 1, "max_forks_count": 2, "avg_line_length": 24.05, "max_line_length": 56, "alphanum_fraction": 0.4844074844}
module.exports = connections => {
  return new Promise((res, rej) => {
    let syncedConnection = 0;
    connections.forEach(connection =>
      connection
        .sync({ force: true })
        .then(() => {
          syncedConnection = syncedConnection + 1;
          if (syncedConnection === connections.length) {
            logger("All DB synced forcefully...");
            res();
          }
        })
        .catch(err => {
          rej(err);
        })
    );
  });
};
