Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meetups display past their end date. #123

Open
rleddy opened this issue May 29, 2017 · 0 comments
Open

Meetups display past their end date. #123

rleddy opened this issue May 29, 2017 · 0 comments

Comments

@rleddy
Copy link

rleddy commented May 29, 2017

This is confusing.

So, it helps to change the query:
`

exports = module.exports = function(req, res) {

var view = new keystone.View(req, res),
	locals = res.locals;

locals.section = 'meetups';
locals.page.title = 'Meetups - Gestures.World';

view.query('upcomingMeetup',
	Meetup.model.findOne()
		.where('state', 'active')
        .where('endDate', { $gt: new Date() })
		.sort('-startDate')
, 'talks[who]');

`

This might not be the best since those past their date will not be marked passive. However, it is less confusing. It is troublesome that the administrator has to change this by hand. While it makes sense for a site to have meetups administered by those who are responsible for the space they are going to use, it is also leaving room for confusing information on the front page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant