Browse Source

Change condition in Campaign from and to

pull/223/head
Christian Arenas 7 years ago
parent
commit
c88ece26e6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Services/Marketing/Marketing.API/Controllers/CampaignsController.cs

+ 2
- 2
src/Services/Marketing/Marketing.API/Controllers/CampaignsController.cs View File

@ -141,8 +141,8 @@
var userCampaignList = await _context.Rules
.OfType<UserLocationRule>()
.Include(c => c.Campaign)
.Where(c => c.Campaign.From >= DateTime.Now
&& c.Campaign.To <= DateTime.Now
.Where(c => c.Campaign.From <= DateTime.Now
&& c.Campaign.To >= DateTime.Now
&& c.LocationId == userLocation.LocationId)
.Select(c => c.Campaign)
.ToListAsync();


Loading…
Cancel
Save