From f8f7e58d9ccf97aa66c73076177f86cbfca63885 Mon Sep 17 00:00:00 2001 From: Daniel Silva Date: Tue, 17 Oct 2023 09:32:11 +0100 Subject: [PATCH] refactor: use tierId instead of request.tierId --- .../Tiers/Commands/DeleteTierQuotaDefinition/Handler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Quotas/src/Quotas.Application/Tiers/Commands/DeleteTierQuotaDefinition/Handler.cs b/Modules/Quotas/src/Quotas.Application/Tiers/Commands/DeleteTierQuotaDefinition/Handler.cs index 21c08afec0..64fe235103 100644 --- a/Modules/Quotas/src/Quotas.Application/Tiers/Commands/DeleteTierQuotaDefinition/Handler.cs +++ b/Modules/Quotas/src/Quotas.Application/Tiers/Commands/DeleteTierQuotaDefinition/Handler.cs @@ -33,7 +33,7 @@ public async Task Handle(DeleteTierQuotaDefinitionCommand request, CancellationT _logger.LogTrace("Successfully deleted tier quota definition with id: '{tierQuotaDefinitionId}'.", request.TierQuotaDefinitionId); - _eventBus.Publish(new TierQuotaDefinitionDeletedIntegrationEvent(request.TierId, request.TierQuotaDefinitionId)); + _eventBus.Publish(new TierQuotaDefinitionDeletedIntegrationEvent(tier.Id, request.TierQuotaDefinitionId)); _logger.LogTrace("Successfully published '{tierQuotaDefinitionDeletedIntegrationEvent}' with id: '{tierQuotaDefinitionId}' and tier id: '{tierId}'", nameof(TierQuotaDefinitionDeletedIntegrationEvent), request.TierQuotaDefinitionId, request.TierId);