From 8c794f584b3e9e87a48f8523854d2b9e5cac55d5 Mon Sep 17 00:00:00 2001 From: Daniel Almeida <115644988+daniel-almeida-konkconsulting@users.noreply.github.com> Date: Thu, 4 Jul 2024 10:09:50 +0100 Subject: [PATCH] fix: status property name changed after merge with main --- .../RelationshipStatusChangedDomainEventHandler.cs | 2 +- .../Incoming/RelationshipStatusChangedDomainEvent.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Messages/src/Messages.Application/DomainEvents/Incoming/RelationshipStatusChanged/RelationshipStatusChangedDomainEventHandler.cs b/Modules/Messages/src/Messages.Application/DomainEvents/Incoming/RelationshipStatusChanged/RelationshipStatusChangedDomainEventHandler.cs index 7ad162873e..cba6ab5ba8 100644 --- a/Modules/Messages/src/Messages.Application/DomainEvents/Incoming/RelationshipStatusChanged/RelationshipStatusChangedDomainEventHandler.cs +++ b/Modules/Messages/src/Messages.Application/DomainEvents/Incoming/RelationshipStatusChanged/RelationshipStatusChangedDomainEventHandler.cs @@ -22,7 +22,7 @@ public RelationshipStatusChangedDomainEventHandler(IMessagesRepository messagesR public async Task Handle(RelationshipStatusChangedDomainEvent @event) { - if (@event.Status != RelationshipStatus.ReadyForDeletion.ToString()) + if (@event.NewStatus != RelationshipStatus.ReadyForDeletion.ToString()) return; var anonymizedIdentityAddress = IdentityAddress.Create(Encoding.Unicode.GetBytes(DELETED_IDENTITY_STRING), _applicationOptions.DidDomainName); diff --git a/Modules/Messages/src/Messages.Domain/DomainEvents/Incoming/RelationshipStatusChangedDomainEvent.cs b/Modules/Messages/src/Messages.Domain/DomainEvents/Incoming/RelationshipStatusChangedDomainEvent.cs index fc4d7cd342..066e36dfe9 100644 --- a/Modules/Messages/src/Messages.Domain/DomainEvents/Incoming/RelationshipStatusChangedDomainEvent.cs +++ b/Modules/Messages/src/Messages.Domain/DomainEvents/Incoming/RelationshipStatusChangedDomainEvent.cs @@ -5,7 +5,7 @@ namespace Backbone.Modules.Messages.Domain.DomainEvents.Incoming; public class RelationshipStatusChangedDomainEvent : DomainEvent { public required string RelationshipId { get; set; } - public required string Status { get; set; } + public required string NewStatus { get; set; } public required string Initiator { get; set; } public required string Peer { get; set; } }