{"size": 686, "ext": "js", "max_stars_repo_path": "src/services/guild/guild.hooks.js", "max_stars_repo_name": "BrackCarmony/gumball-chains-of-fate", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/services/guild/guild.hooks.js", "max_issues_repo_name": "BrackCarmony/gumball-chains-of-fate", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/services/guild/guild.hooks.js", "max_forks_repo_name": "BrackCarmony/gumball-chains-of-fate", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.3333333333, "max_line_length": 57, "alphanum_fraction": 0.4591836735}

module.exports = {
  before: {
    all: [],
    find: [function(hook){
      console.log(hook.params.query);
      if (hook.params.query.search){
        let search = hook.params.query.search;
        delete hook.params.query.search;
        hook.params.query.name = new RegExp(search, 'i');
      }
      console.log(hook.params.query);
      return hook;
    }],
    get: [],
    create: [],
    update: [],
    patch: [],
    remove: []
  },

  after: {
    all: [],
    find: [],
    get: [],
    create: [],
    update: [],
    patch: [],
    remove: []
  },

  error: {
    all: [],
    find: [],
    get: [],
    create: [],
    update: [],
    patch: [],
    remove: []
  }
};
