Skip to content

Commit

Permalink
Merge pull request #73 from NerosoftDev/develop
Browse files Browse the repository at this point in the history
Fixes a error if aggregate root id is null.
  • Loading branch information
Codespilot committed Feb 23, 2024
2 parents ec64101 + 3f4f2e7 commit fcde555
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<MicrosoftPackageVersion6>6.0.27</MicrosoftPackageVersion6>
<MicrosoftPackageVersion7>7.0.16</MicrosoftPackageVersion7>
<MicrosoftPackageVersion8>8.0.2</MicrosoftPackageVersion8>
<GrpcAspNetCoreVersion>2.60.0</GrpcAspNetCoreVersion>
<GrpcAspNetCoreVersion>2.61.0</GrpcAspNetCoreVersion>
<QuartzVersion>3.8.1</QuartzVersion>
</PropertyGroup>
<ItemGroup>
Expand All @@ -24,7 +24,7 @@
<PackageVersion Include="Mapster.DependencyInjection" Version="1.0.1" />
<PackageVersion Include="MediatR" Version="12.1.1" />
<PackageVersion Include="MediatR.Contracts" Version="2.0.1" />
<PackageVersion Include="mongocsharpdriver" Version="2.23.1" />
<PackageVersion Include="mongocsharpdriver" Version="2.24.0" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
<PackageVersion Include="Polly" Version="8.3.0" />
<PackageVersion Include="protobuf-net" Version="3.1.33" />
Expand All @@ -41,7 +41,7 @@
<PackageVersion Include="Serilog.Sinks.Elasticsearch" Version="9.0.3" />
<PackageVersion Include="Serilog.Sinks.Email" Version="2.4.0" />
<PackageVersion Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageVersion Include="StackExchange.Redis" Version="2.7.17" />
<PackageVersion Include="StackExchange.Redis" Version="2.7.20" />
<PackageVersion Include="Swashbuckle.AspNetCore" Version="6.5.0" />
<PackageVersion Include="System.Collections.Immutable" Version="8.0.0" />
<PackageVersion Include="System.Configuration.ConfigurationManager" Version="7.0.0" />
Expand Down Expand Up @@ -132,7 +132,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
<PackageVersion Include="coverlet.collector" Version="6.0.0">
<PackageVersion Include="coverlet.collector" Version="6.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
Expand Down
2 changes: 1 addition & 1 deletion Source/Euonia.Domain/Events/DomainEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public abstract class DomainEvent : Event, IDomainEvent
public void Attach<TKey>(IAggregateRoot<TKey> aggregate)
where TKey : IEquatable<TKey>
{
OriginatorId = aggregate.Id.ToString();
OriginatorId = aggregate.Id?.ToString();
OriginatorType = aggregate.GetType().AssemblyQualifiedName;
AggregatePayload = aggregate;
}
Expand Down
2 changes: 1 addition & 1 deletion project.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>8.1.22</Version>
<Version>8.1.23</Version>
<Authors>damon</Authors>
<Company>Nerosoft Ltd.</Company>
<Product>Euonia</Product>
Expand Down

0 comments on commit fcde555

Please sign in to comment.