Merge pull request 'Refactored batch drop logic' (#27) from emailjobs into master

Reviewed-on: #27
This commit was merged in pull request #27.
This commit is contained in:
2026-05-16 00:05:51 +02:00
@@ -27,7 +27,7 @@ public class ProcessEmailNotificationsEventHandler(IDbContextFactory<ShopDbConte
foreach (var notification in notifications) foreach (var notification in notifications)
{ {
if (dropBatch || cancellationToken.IsCancellationRequested) break; if (dropBatch) break;
var sendResult = await SendEmailAsync(notification,emailService, cancellationToken); var sendResult = await SendEmailAsync(notification,emailService, cancellationToken);