Skip to content

Commit

Permalink
Update QuestionServices.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Apr 8, 2024
1 parent 8fdf0a5 commit 1caf1e4
Showing 1 changed file with 2 additions and 2 deletions.
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 1caf1e4

Please sign in to comment.