Skip to content

Commit

Permalink
Fix PrivateMessageNotification missing TenantId bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlcf88 committed Mar 16, 2020
1 parent b0c09d3 commit ffd73ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.1.0</Version>
<Version>0.1.1</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public virtual async Task<PrivateMessageDto> CreateAsync(CreateUpdatePrivateMess
CurrentTenant.Id, toUser.Id, input.Title, input.Content));

await _notificationManager.CreateAsync(new PrivateMessageNotification(GuidGenerator.Create(),
toUser.Id, message.Id, message.GetTitlePreview()));
CurrentTenant.Id, toUser.Id, message.Id, message.GetTitlePreview()));

return await MapToDtoAndLoadMoreInfosAsync(message);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ protected PrivateMessageNotification()

public PrivateMessageNotification(
Guid id,
Guid? tenantId,
Guid userId,
Guid privateMessageId,
[NotNull] string titlePreview) : base(id)
{
TenantId = tenantId;
UserId = userId;
PrivateMessageId = privateMessageId;
TitlePreview = titlePreview;
Expand Down

0 comments on commit ffd73ac

Please sign in to comment.