Skip to content

Commit

Permalink
Предупреждать раз в неделю о устаревших заявках
Browse files Browse the repository at this point in the history
  • Loading branch information
leotsarev committed Oct 18, 2024
1 parent 0eceae8 commit 883d35a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public async Task RunOnce(CancellationToken cancellationToken)
{
var proj = await projectRepository.GetProjectAsync(legacyProject.ProjectId);

if (proj.CreatedDate.Day != today.Day)
if (proj.CreatedDate.DayOfWeek != today.DayOfWeek)
{
logger.LogInformation("Project {project} is using group claims. It will be warned on {dayOfMonth} day of month", legacyProject.ProjectId, proj.CreatedDate.Day);
logger.LogInformation("Project {project} is using group claims. It will be warned on {dayOfWeek} day of week", legacyProject.ProjectId, proj.CreatedDate.DayOfWeek);
continue;
}

Expand Down

0 comments on commit 883d35a

Please sign in to comment.