Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Layoric committed Apr 8, 2024
2 parents ad119ed + 1caf1e4 commit 281dc0c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
4 changes: 0 additions & 4 deletions MyApp.ServiceInterface/Data/AppConfig.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
7 changes: 0 additions & 7 deletions MyApp.ServiceInterface/IAsyncCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ public class CommandSummary
[ExcludeMetadata]
public class ViewCommands : IGet, IReturn<ViewCommandsResponse>
{
public bool? Clear { get; set; }
}
public class ViewCommandsResponse
{
Expand All @@ -359,12 +358,6 @@ public async Task<object> 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;
}
}
4 changes: 2 additions & 2 deletions MyApp.ServiceInterface/QuestionServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ public async Task<object> 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<Post>(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);
Expand Down

0 comments on commit 281dc0c

Please sign in to comment.