{"size": 435, "ext": "js", "max_stars_repo_path": "lib/user/getsubscribers.js", "max_stars_repo_name": "muminoff/uzb25bot", "max_stars_repo_stars_event_min_datetime": "2016-07-15T07:01:48.000Z", "max_stars_repo_stars_event_max_datetime": "2016-07-15T07:01:48.000Z", "max_issues_repo_path": "lib/user/getsubscribers.js", "max_issues_repo_name": "muminoff/uzb25bot", "max_issues_repo_issues_event_min_datetime": "2016-07-22T07:28:27.000Z", "max_issues_repo_issues_event_max_datetime": "2016-07-26T05:27:36.000Z", "max_forks_repo_path": "lib/user/getsubscribers.js", "max_forks_repo_name": "muminoff/uzb25bot", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 24.1666666667, "max_line_length": 78, "alphanum_fraction": 0.6275862069}
// const getSubscribersQuery = "SELECT id FROM subscribers WHERE active=true";
const getSubscribersQuery = "SELECT id FROM subscribers";
const getSubscribers = module.exports = (client, logger, callback) => {
  logger.info("Getting subscribers");

  client.query(
    getSubscribersQuery,
    [],
    (err, result) => {
      if (err) {
        logger.error(err);
        callback([]);
      }
      callback(result.rows);
    });

};
