Meteor.publish("userData", function () {
	check(arguments, [Match.Any]);
	if(this.userId){
		return [
			Users.find({_id: this.userId})
		];
	}
	this.ready();
});

Meteor.publish("jobs", function(){
	var daysAgo = new Date();
	daysAgo.setDate(daysAgo.getDate()-90);
	check(arguments, [Match.Any]);
	return [
		Jobs.find({"createdAt": { $gte: daysAgo }})
	];
});

Meteor.publish("experts", function(){
	check(arguments, [Match.Any]);
	return [
		Experts.find({})
	];
});
Meteor.publish("userData", function () {
	check(arguments, [Match.Any]);
	if(this.userId){
		return [
			Users.find({_id: this.userId})
		];
	}
	this.ready();
});

Meteor.publish("jobs", function(){
	check(arguments, [Match.Any]);
	return [
		Jobs.find({})
	];
});

Meteor.publish("experts", function(){
	check(arguments, [Match.Any]);
	return [
		Experts.find({})
	];
});
Revert "Basic implementation of expiring job posts"
Revert "Basic implementation of expiring job posts"

This reverts commit fed2d4f5bd69c91a1366ed1fa63d059ef9ba4357.
