From 43225bf3e2cfdb33dabdd50b33a43dbb8857eb36 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Mon, 8 Apr 2024 11:23:40 +0800 Subject: [PATCH 1/3] Update AppConfig.cs --- MyApp.ServiceInterface/Data/AppConfig.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/MyApp.ServiceInterface/Data/AppConfig.cs b/MyApp.ServiceInterface/Data/AppConfig.cs index f715bc6..6031e33 100644 --- a/MyApp.ServiceInterface/Data/AppConfig.cs +++ b/MyApp.ServiceInterface/Data/AppConfig.cs @@ -1,10 +1,6 @@ using System.Collections.Concurrent; using System.Data; -using System.Diagnostics; -using Amazon.Runtime.Internal.Util; -using MyApp.ServiceInterface; using MyApp.ServiceModel; -using ServiceStack; using ServiceStack.OrmLite; namespace MyApp.Data; From 8fdf0a5486020622fe33a50a3cb314d47560c7d5 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Mon, 8 Apr 2024 11:30:12 +0800 Subject: [PATCH 2/3] Update IAsyncCommand.cs --- MyApp.ServiceInterface/IAsyncCommand.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/MyApp.ServiceInterface/IAsyncCommand.cs b/MyApp.ServiceInterface/IAsyncCommand.cs index 70da645..69ef6a8 100644 --- a/MyApp.ServiceInterface/IAsyncCommand.cs +++ b/MyApp.ServiceInterface/IAsyncCommand.cs @@ -334,7 +334,6 @@ public class CommandSummary [ExcludeMetadata] public class ViewCommands : IGet, IReturn { - public bool? Clear { get; set; } } public class ViewCommandsResponse { @@ -359,12 +358,6 @@ public async Task Any(ViewCommands request) LatestFailed = new(feature.CommandFailures), CommandTotals = new(feature.CommandTotals.Values) }; - if (request.Clear == true) - { - feature.CommandResults.Clear(); - feature.CommandFailures.Clear(); - feature.CommandTotals.Clear(); - } return to; } } From 1caf1e44cf0ba7e8bd4d363f6d5b76b919ec4448 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Mon, 8 Apr 2024 11:48:15 +0800 Subject: [PATCH 3/3] Update QuestionServices.cs --- MyApp.ServiceInterface/QuestionServices.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MyApp.ServiceInterface/QuestionServices.cs b/MyApp.ServiceInterface/QuestionServices.cs index 81c7a53..cffd11c 100644 --- a/MyApp.ServiceInterface/QuestionServices.cs +++ b/MyApp.ServiceInterface/QuestionServices.cs @@ -351,9 +351,9 @@ public async Task Any(CreateWorkerAnswer request) answerNotifier.NotifyNewAnswer(request.PostId, request.Model); - // Only add notifications for answers older than 1hr + // Only add notifications for answers older than 25hr var post = await Db.SingleByIdAsync(request.PostId); - if (post?.CreatedBy != null && DateTime.UtcNow - post.CreationDate > TimeSpan.FromHours(1)) + if (post?.CreatedBy != null && DateTime.UtcNow - post.CreationDate > TimeSpan.FromHours(25)) { var userName = appConfig.GetUserName(request.Model); var body = questions.GetModelAnswerBody(json);