Added outgoing email notification processing event

This commit is contained in:
Khwezi Mngoma
2026-05-10 16:07:53 +02:00
parent e8e9a85c57
commit 73ba41beaf
6 changed files with 102 additions and 5 deletions
@@ -12,7 +12,7 @@ public class GetNotificationQueryHandler(IDbContextFactory<ShopDbContext> contex
{
await using var context = await contextFactory.CreateDbContextAsync(cancellationToken);
var notification = await context.Notifications.FindAsync(new object[] { request.NotificationId }, cancellationToken);
var notification = await context.Notifications.FirstOrDefaultAsync(n => n.Id == request.NotificationId, cancellationToken);
return notification is not null
? Result.Ok(notification.ToModel())