From 5aec36b1553f62da653329f3c908eef365283f14 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sun, 28 Jun 2026 21:33:33 +0900 Subject: [PATCH] fix(telegram): remove duplicate deploy success notice --- TaxBaik.Web/Program.cs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/TaxBaik.Web/Program.cs b/TaxBaik.Web/Program.cs index 6ab5f40..0cc60fb 100644 --- a/TaxBaik.Web/Program.cs +++ b/TaxBaik.Web/Program.cs @@ -366,26 +366,6 @@ app.MapRazorComponents() try { Log.Information("애플리케이션 시작: {Environment}", app.Environment.EnvironmentName); - if (!app.Environment.IsDevelopment()) - { - // 배포 완료 알림을 백그라운드에서 비동기 전송 (앱 시작 블록 방지) - _ = Task.Run(async () => - { - try - { - using (var scope = app.Services.CreateScope()) - { - var telegramService = scope.ServiceProvider.GetRequiredService(); - await telegramService.SendSystemNotificationAsync( - $"✅ 배포 완료\n\n환경: {app.Environment.EnvironmentName}\n상태: 정상 운영 중"); - } - } - catch (Exception ex) - { - Log.Error(ex, "배포 완료 알림 전송 실패"); - } - }); - } app.Run(); } catch (Exception ex)