mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Fixed a timing bug found the in build. Note, when working with time differences use TotalDays.
This commit is contained in:
parent
694bc8aa02
commit
a32599cbde
2 changed files with 2 additions and 1 deletions
|
@ -88,7 +88,7 @@ namespace PlexRequests.Services.Jobs
|
|||
var users = allUsers.Where(x => x.RequestType == type);
|
||||
foreach (var u in users)
|
||||
{
|
||||
var daysDiff = (u.FirstRequestDate - DateTime.UtcNow.AddDays(-7)).Days;
|
||||
var daysDiff = (u.FirstRequestDate - DateTime.UtcNow.AddDays(-7)).TotalDays;
|
||||
if (daysDiff <= 0)
|
||||
{
|
||||
Repo.Delete(u);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue