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

Feature/meetup small improvements #537

Merged
merged 3 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ShareBook/ShareBook.Api/Controllers/MeetupController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public MeetupController(IMeetupService meetupService)

public PagedList<Meetup> Get(int? page, int? pageSize, bool upcoming = false)
{
return _meetupService.Get(upcoming ? x => x.StartDate > DateTime.Now : x => x.StartDate <= DateTime.Now, x => x.StartDate, page ?? 1, pageSize ?? 10);
return _meetupService.Get(upcoming ? x => x.Active && x.StartDate > DateTime.Now : x => x.Active && x.StartDate <= DateTime.Now, x => x.StartDate, page ?? 1, pageSize ?? 10);
}

[HttpGet("{id}")]
Expand Down
1 change: 1 addition & 0 deletions ShareBook/ShareBook.Domain/Meetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ public class Meetup : BaseEntity
public string SymplaEventUrl { get; set; }
public ICollection<MeetupParticipant> MeetupParticipants { get; set; }
public bool IsParticipantListSynced { get; set; } = false;
public bool Active { get; set; } = true;
}
}
Loading
Loading