|
|
|
@ -353,6 +353,9 @@ public class DefaultTbApiUsageStateService extends AbstractPartitionBasedService |
|
|
|
String email = tenantService.findTenantById(state.getTenantId()).getEmail(); |
|
|
|
result.forEach((apiFeature, stateValue) -> { |
|
|
|
ApiUsageRecordState recordState = createApiUsageRecordState((TenantApiUsageState) state, apiFeature, stateValue); |
|
|
|
if (recordState == null) { |
|
|
|
return; |
|
|
|
} |
|
|
|
notificationRuleProcessor.process(ApiUsageLimitTrigger.builder() |
|
|
|
.tenantId(state.getTenantId()) |
|
|
|
.state(recordState) |
|
|
|
|