We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d120bb commit 7873dd1Copy full SHA for 7873dd1
src/Core/Services/NotificationService.cs
@@ -22,6 +22,7 @@ public async Task<ErrorOr<NotificationDto>> CreateNotification(
22
23
ct.ThrowIfCancellationRequested();
24
await notificationsRepository.InsertOne(notification);
25
+ dto = dto with { Id = notification.Id.ToString() };
26
27
var deliveryRequests = CreateDeliveryRequests(dto).ToList();
28
@@ -31,8 +32,7 @@ public async Task<ErrorOr<NotificationDto>> CreateNotification(
31
32
await notificationsAnalyticsClient
33
.SendNotificationCreated(deliveryRequest.NotificationId, ct);
34
}
-
35
- dto = dto with { Id = notification.Id.ToString() };
+
36
return dto;
37
38
0 commit comments