Skip to content

Commit bb60db6

Browse files
committed
Fixed a bug where the hourly event limit wasn't taking into account the total number of blocked events.
1 parent cba48a2 commit bb60db6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Core/Extensions/OrganizationExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static int GetHourlyEventLimit(this Organization organization) {
3636
if (organization.MaxEventsPerMonth <= 0)
3737
return Int32.MaxValue;
3838

39-
int eventsLeftInMonth = organization.GetMaxEventsPerMonthWithBonus() - organization.GetCurrentMonthlyTotal();
39+
int eventsLeftInMonth = organization.GetMaxEventsPerMonthWithBonus() - (organization.GetCurrentMonthlyTotal() - organization.GetCurrentMonthlyBlocked());
4040
if (eventsLeftInMonth < 0)
4141
return 0;
4242

0 commit comments

Comments
 (0)