{"size": 481, "ext": "js", "max_stars_repo_path": "server/collections/views/jobsView.js", "max_stars_repo_name": "gsantoshb/Exartu-CRM", "max_stars_repo_stars_event_min_datetime": "2015-09-08T20:28:36.000Z", "max_stars_repo_stars_event_max_datetime": "2021-06-06T05:24:57.000Z", "max_issues_repo_path": "server/collections/views/jobsView.js", "max_issues_repo_name": "gsantoshb/Exartu-CRM", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server/collections/views/jobsView.js", "max_forks_repo_name": "gsantoshb/Exartu-CRM", "max_forks_repo_forks_event_min_datetime": "2016-04-11T09:11:59.000Z", "max_forks_repo_forks_event_max_datetime": "2018-05-09T08:29:26.000Z"}
{"max_stars_count": 10, "max_issues_count": null, "max_forks_count": 10, "avg_line_length": 24.05, "max_line_length": 99, "alphanum_fraction": 0.7151767152}

JobsView = new Mongo.Collection("jobsView");

Meteor.paginatedPublish(JobsView, function () {
  if (!this.userId) return [];

  return Utils.filterCollectionByUserHier.call(this, JobsView.find({}, {sort: {dateCreated: -1}}));
}, {
  pageSize: 20,
  publicationName: 'jobsView'
});


// Indexes
JobsView._ensureIndex({jobId: 1});
JobsView._ensureIndex({hierId: 1});
JobsView._ensureIndex({userId: 1});
JobsView._ensureIndex({clientId: 1});
JobsView._ensureIndex({dateCreated: 1});
