Skip to content

Commit f4fbeb9

Browse files
committed
fix: update order status logging in OrderEventHandler
1 parent bb1adf6 commit f4fbeb9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<!-- Microsoft Packages -->
1010
<MsExtVersion>9.8.0</MsExtVersion>
1111
<MsTestVersion>1.8.3</MsTestVersion>
12-
<ToolKitVersion>9.7.1</ToolKitVersion>
12+
<ToolKitVersion>9.7.2</ToolKitVersion>
1313
<!-- Observability & Health -->
1414
<HealthChecksVersion>9.0.0</HealthChecksVersion>
1515
</PropertyGroup>

src/Services/Ordering/BookWorm.Ordering/Domain/EventHandlers/OrderEventHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ILogger<OrderEventHandler> logger
1212
{
1313
public async Task Handle(OrderCancelledEvent notification, CancellationToken cancellationToken)
1414
{
15-
OrderingTrace.LogOrderCancelled(logger, notification.Order.Id, Status.New);
15+
OrderingTrace.LogOrderCancelled(logger, notification.Order.Id, Status.Cancelled);
1616
await documentSession.GetAndUpdate<OrderSummary>(
1717
Guid.CreateVersion7(),
1818
notification,
@@ -22,7 +22,7 @@ await documentSession.GetAndUpdate<OrderSummary>(
2222

2323
public async Task Handle(OrderCompletedEvent notification, CancellationToken cancellationToken)
2424
{
25-
OrderingTrace.LogOrderCompleted(logger, notification.Order.Id, Status.New);
25+
OrderingTrace.LogOrderCompleted(logger, notification.Order.Id, Status.Completed);
2626
await documentSession.GetAndUpdate<OrderSummary>(
2727
Guid.CreateVersion7(),
2828
notification,

0 commit comments

Comments
 (0)