Skip to content

Commit

Permalink
Opportunity_Published Notification: Exclude hidden opportunities (#1161)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianwium authored Nov 26, 2024
1 parent 580da4a commit b64c569
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public async Task ProcessPublishedNotifications()
var organizationStatusActiveId = _organizationStatusService.GetByName(OrganizationStatus.Active.ToString()).Id;

var items = _opportunityRepository.Query(true).Where(o => o.OrganizationStatusId == organizationStatusActiveId //include children / countries
&& o.StatusId == statusActiveId && o.DateStart >= datetimeFrom && o.DateStart <= datetimeTo)
&& o.StatusId == statusActiveId && (!o.Hidden.HasValue || o.Hidden == false) && o.DateStart >= datetimeFrom && o.DateStart <= datetimeTo)
.OrderBy(o => o.DateStart).ThenBy(o => o.Title).ThenBy(o => o.Id).ToList();
if (items.Count == 0) return;

Expand Down

0 comments on commit b64c569

Please sign in to comment.