Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small Event.Id improvement in EventSlice.cs side-effects
Browse files Browse the repository at this point in the history
haefele committed Oct 30, 2024
1 parent 72cdd57 commit cc8e07d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Marten/Events/Projections/EventSlice.cs
Original file line number Diff line number Diff line change
@@ -229,7 +229,7 @@ public IEnumerable<IStorageOperation> BuildOperations(EventGraph eventGraph, Doc
e.EventTypeName = mapping.EventTypeName;
e.TenantId = Tenant.TenantId;
e.Timestamp = now;
e.Id = Guid.NewGuid();
// Dont assign e.Id so StreamAction.Append can auto assign a CombGuid
}

if (eventGraph.StreamIdentity == StreamIdentity.AsGuid)

0 comments on commit cc8e07d

Please sign in to comment.