From ae42b51d0488b8d329c3379e6c345e4fe7421cf9 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Fri, 12 Sep 2025 12:15:21 +0300 Subject: Some qork on AI Alerts. --- .../Visual_Studio_22/Tango.Portal.Chat.Web/Alerts/AlertsWorker.cs | 2 +- Software/Visual_Studio_22/Tango.Portal.Chat.Web/Models/AlertsQuery.cs | 2 +- .../Visual_Studio_22/Tango.Portal.Chat.Web/Services/N8NService.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Software/Visual_Studio_22') 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 PostAlertDataAsync(string name, string type, string chartType, string chartTitle, string chartInstructions, object[] rows, CancellationToken cancellationToken = default) + public async Task 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); -- cgit v1.3.1