feat: include inquiry status changer in alerts
TaxBaik Browser E2E / browser-e2e (push) Failing after 1m6s
TaxBaik CI/CD / build-and-deploy (push) Successful in 1m26s

This commit is contained in:
2026-06-27 16:36:31 +09:00
parent 1438a9e30a
commit e3f548f163
7 changed files with 11 additions and 8 deletions
@@ -66,7 +66,7 @@ public class TelegramInquiryNotificationService : IInquiryNotificationService
}
}
public async Task NotifyStatusChangedAsync(int inquiryId, string name, string phone, string serviceType, string previousStatus, string newStatus, CancellationToken ct = default)
public async Task NotifyStatusChangedAsync(int inquiryId, string name, string phone, string serviceType, string previousStatus, string newStatus, string? changedBy = null, CancellationToken ct = default)
{
var botToken = _configuration["Telegram:BotToken"];
var chatId = _configuration["Telegram:ChatId"];
@@ -82,6 +82,7 @@ public class TelegramInquiryNotificationService : IInquiryNotificationService
.AppendLine($"이름: {name}")
.AppendLine($"연락처: {phone}")
.AppendLine($"상태: {FormatStatus(previousStatus)} -> {FormatStatus(newStatus)}")
.AppendLine($"변경자: {(string.IsNullOrWhiteSpace(changedBy) ? "-" : changedBy)}")
.AppendLine()
.AppendLine($"답변 목록 링크: {adminLink}")
.ToString();