Skip to content

Commit

Permalink
Fix the properties on UserMergedMessage - they were backwards
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad committed Mar 7, 2024
1 parent 582cc51 commit 01bd758
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ public record UserMergedMessage : INotificationMessage
public const string MessageTypeName = "UserMerged";

public required Guid MergedUserId { get; init; }
public required User MasterUser { get; init; }
public required Guid MasterUserId { get; init; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ private static IEnumerable<NotificationEnvelope> GetNotificationsForEvent(EventB
NotificationId = Guid.NewGuid(),
Message = new UserMergedMessage()
{
MasterUser = userMerged.User,
MergedUserId = userMerged.MergedWithUserId
MasterUserId = userMerged.MergedWithUserId,
MergedUserId = userMerged.User.UserId
},
MessageType = UserMergedMessage.MessageTypeName,
TimeUtc = userMerged.CreatedUtc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public async Task UserMerged_WhenPublished_IsOnlySentToWebHookEndpointsWhichSubs
NotificationId = Guid.NewGuid(),
Message = new UserMergedMessage()
{
MasterUser = user,
MasterUserId = user.UserId,
MergedUserId = mergedUserId
},
MessageType = UserMergedMessage.MessageTypeName,
Expand Down

0 comments on commit 01bd758

Please sign in to comment.