Skip to content

Commit 21201fe

Browse files
authored
Предупреждать раз в неделю о устаревших заявках (#2851)
1 parent 0eceae8 commit 21201fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JoinRpg.Services.Impl/Projects/ProjectGroupClaimsWarnJob.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ public async Task RunOnce(CancellationToken cancellationToken)
1515
{
1616
var proj = await projectRepository.GetProjectAsync(legacyProject.ProjectId);
1717

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

0 commit comments

Comments
 (0)