use same alarm signal "2 or more strings are broken" for Salimax and Salidom

This commit is contained in:
Yinyin Liu 2024-06-19 13:38:27 +02:00
parent 10b7c7b267
commit dfc779a360
1 changed files with 2 additions and 2 deletions

View File

@ -125,11 +125,11 @@ public static class RabbitMqManager
Console.WriteLine("Add an alarm for installation "+installationId);
// Send replace battery email to support team if this alarm is "NeedToReplaceBattery"
if (alarm.Description == "NeedToReplaceBattery" || alarm.Description == "2 or more string are disabled")
if (alarm.Description == "2 or more string are disabled")
{
Console.WriteLine("Send replace battery email to the support team for installation "+installationId);
string recipient = "support@innov.energy";
string subject = "Battery Alarm: 2 or more strings broken";
string subject = $"Battery Alarm from {installation.InstallationName}: 2 or more strings broken";
string text = $"Dear InnovEnergy Support Team,\n" +
$"\n"+
$"Installation Name: {installation.InstallationName}\n"+