{"size": 369, "ext": "js", "max_stars_repo_path": "app/imports/api/server/publications/businessAreasPublications.js", "max_stars_repo_name": "LeonardoManzella/ProyectoFinal2018", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/imports/api/server/publications/businessAreasPublications.js", "max_issues_repo_name": "LeonardoManzella/ProyectoFinal2018", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/imports/api/server/publications/businessAreasPublications.js", "max_forks_repo_name": "LeonardoManzella/ProyectoFinal2018", "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": 36.9, "max_line_length": 72, "alphanum_fraction": 0.701897019}
import { Meteor } from 'meteor/meteor';
import { BusinessAreas } from '../../../../lib/schemas/businessArea';

Meteor.publish('getBusinessAreas', function(userId) {
  return BusinessAreas.find({userId: userId ? userId : this.userId});
});

Meteor.publish('getBusinessAreasNames', function() {
  return BusinessAreas.find({userId: this.userId}, {fields: {name: 1}});
});