This commit is contained in:
@@ -79,6 +79,7 @@ public class ContactMessageNotificationService : BackgroundService
|
|||||||
if (response.IsSuccessStatusCode)
|
if (response.IsSuccessStatusCode)
|
||||||
{
|
{
|
||||||
eintrag.NotificationSent = true;
|
eintrag.NotificationSent = true;
|
||||||
|
await context.SaveChangesAsync(stoppingToken);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -90,7 +91,5 @@ public class ContactMessageNotificationService : BackgroundService
|
|||||||
_logger.LogError(ex, "Telegram-Versand fehlgeschlagen für ContactMessage {Id}", eintrag.Id);
|
_logger.LogError(ex, "Telegram-Versand fehlgeschlagen für ContactMessage {Id}", eintrag.Id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await context.SaveChangesAsync(stoppingToken);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user