Save per entry for no duplicate data
Deploy Staging / deploy (push) Successful in 1m24s

This commit is contained in:
Francesco Lorenzo D'Amico
2026-08-24 13:41:09 +02:00
parent 28eb67c551
commit e66d95ec7a
@@ -79,6 +79,7 @@ public class ContactMessageNotificationService : BackgroundService
if (response.IsSuccessStatusCode)
{
eintrag.NotificationSent = true;
await context.SaveChangesAsync(stoppingToken);
}
else
{
@@ -90,7 +91,5 @@ public class ContactMessageNotificationService : BackgroundService
_logger.LogError(ex, "Telegram-Versand fehlgeschlagen für ContactMessage {Id}", eintrag.Id);
}
}
await context.SaveChangesAsync(stoppingToken);
}
}
}