fix(telegram): remove duplicate deploy success notice
TaxBaik CI/CD / build-and-deploy (push) Successful in 1m1s
TaxBaik CI/CD / build-and-deploy (push) Successful in 1m1s
This commit is contained in:
@@ -366,26 +366,6 @@ app.MapRazorComponents<TaxBaik.Web.Components.Admin.App>()
|
||||
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<ITelegramNotificationService>();
|
||||
await telegramService.SendSystemNotificationAsync(
|
||||
$"✅ 배포 완료\n\n환경: {app.Environment.EnvironmentName}\n상태: 정상 운영 중");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error(ex, "배포 완료 알림 전송 실패");
|
||||
}
|
||||
});
|
||||
}
|
||||
app.Run();
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user