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; 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; } } 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);