aboutsummaryrefslogtreecommitdiffstats
path: root/Software
diff options
context:
space:
mode:
authorRoy Ben Shabat <roy.mail.net@gmail.com>2025-09-12 12:15:21 +0300
committerRoy Ben Shabat <roy.mail.net@gmail.com>2025-09-12 12:15:21 +0300
commitae42b51d0488b8d329c3379e6c345e4fe7421cf9 (patch)
tree7cd1e05976acf1137333d0aec7e9b6dfb3032a39 /Software
parent420ef1c290c4712ebfa2708267ec8ac1ffde6edc (diff)
downloadTango-ae42b51d0488b8d329c3379e6c345e4fe7421cf9.tar.gz
Tango-ae42b51d0488b8d329c3379e6c345e4fe7421cf9.zip
Some qork on AI Alerts.
Diffstat (limited to 'Software')
-rw-r--r--Software/Visual_Studio_22/Tango.Portal.Chat.Web/Alerts/AlertsWorker.cs2
-rw-r--r--Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/AlertsQuery.cs2
-rw-r--r--Software/Visual_Studio_22/Tango.Portal.Chat.Web/Services/N8NService.cs4
3 files changed, 4 insertions, 4 deletions
diff --git a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Alerts/AlertsWorker.cs b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Alerts/AlertsWorker.cs
index ad337f4f6..25d31ef37 100644
--- a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Alerts/AlertsWorker.cs
+++ b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Alerts/AlertsWorker.cs
@@ -103,7 +103,7 @@ namespace Tango.Portal.Chat.Web.Alerts
if (rows.Count() > 0)
{
// Post to n8n
- success = await n8nService.PostAlertDataAsync(query.Name, query.Type, query.ChartType, query.ChartTitle, query.ChartInstructions, rows, cancellationToken);
+ success = await n8nService.PostAlertDataAsync(query.Name, query.Type, query.ChartType, query.ChartTitle, query.Instructions, rows, cancellationToken);
// If successful and AvoidDuplicates is enabled, store hashes of published rows
if (success && query.AvoidDuplicates)
diff --git a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/AlertsQuery.cs b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/AlertsQuery.cs
index 318cbe3b0..9ae6553e7 100644
--- a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/AlertsQuery.cs
+++ b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/AlertsQuery.cs
@@ -19,7 +19,7 @@ namespace Tango.Portal.Chat.Web.Models
public bool AvoidDuplicates { get; set; }
public String ChartType { get; set; } = String.Empty;
public String ChartTitle { get; set; } = String.Empty;
- public String ChartInstructions { get; set; } = String.Empty;
+ public String Instructions { get; set; } = String.Empty;
}
} \ No newline at end of file
diff --git a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Services/N8NService.cs b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Services/N8NService.cs
index c0100d868..6205e6327 100644
--- a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Services/N8NService.cs
+++ b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Services/N8NService.cs
@@ -22,7 +22,7 @@ namespace Tango.Portal.Chat.Web.Services
_httpClient.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", credentials);
}
- public async Task<bool> PostAlertDataAsync(string name, string type, string chartType, string chartTitle, string chartInstructions, object[] rows, CancellationToken cancellationToken = default)
+ public async Task<bool> PostAlertDataAsync(string name, string type, string chartType, string chartTitle, string instructions, object[] rows, CancellationToken cancellationToken = default)
{
try
{
@@ -33,7 +33,7 @@ namespace Tango.Portal.Chat.Web.Services
Rows = rows,
ChartType = chartType,
ChartTitle = chartTitle,
- ChartInstructions = chartInstructions
+ Instructions = instructions
};
var json = JsonSerializer.Serialize(payload);