Skip to content

Commit

Permalink
update campaign validation on voucher redeem
Browse files Browse the repository at this point in the history
  • Loading branch information
IliyanIlievPH committed Jun 9, 2020
1 parent e48ba2b commit 9a506b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ private bool IsCampaignStateValid(VoucherCampaign campaign)

private bool IsCampaignDateValid(VoucherCampaign campaign)
=> DateTime.UtcNow > campaign.FromDate
|| (campaign.ExpirationDate.HasValue && campaign.ExpirationDate.Value > DateTime.UtcNow);
&& (!campaign.ExpirationDate.HasValue || campaign.ExpirationDate.Value > DateTime.UtcNow);

private async Task PublishVoucherSoldEvent(Guid? paymentRequestId, VoucherCampaign voucherCampaign, Voucher voucher)
{
Expand Down

0 comments on commit 9a506b5

Please sign in to comment.