Stable run on Notification creation

This commit is contained in:
Khwezi Mngoma
2026-05-14 02:46:07 +02:00
parent 134d8429c0
commit 2610275bef
34 changed files with 2199 additions and 223 deletions
@@ -31,7 +31,7 @@ public class NotificationService(IDbContextFactory<ShopDbContext> contextFactory
Processed = false
});
return newNotification is not null
return await context.SaveChangesAsync(cancellationToken) > 0
? Result.Ok(newNotification.Entity.Id)
: Result.Fail(new Error("Failed to create notification"));
}