Skip to content

Commit

Permalink
fix hit and run addHour
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Jan 21, 2025
1 parent 03c65b6 commit b3702cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Repositories/HitAndRunRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ private function doCronjobUpdateStatus(array $setting, $uid = null, $torrentId =
}

//unreached
if ($row->created_at->addHours($setting['inspect_time'])->lte(Carbon::now())) {
if ($row->created_at->addHours((int)$setting['inspect_time'])->lte(Carbon::now())) {
$result = $this->unreached($row, $setting, !isset($disabledUsers[$row->uid]));
if ($result) {
$successCounts++;
Expand Down

0 comments on commit b3702cb

Please sign in to comment.