Skip to content

Commit

Permalink
Merge pull request #537 from SharebookBR/feature/meetup-small-improve…
Browse files Browse the repository at this point in the history
…ments

Feature/meetup small improvements
  • Loading branch information
raffacabofrio committed Jul 26, 2023
2 parents 41898d4 + d8e0322 commit 144bdb0
Show file tree
Hide file tree
Showing 8 changed files with 623 additions and 6 deletions.
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

0 comments on commit 144bdb0

Please sign in to comment.