Skip to content

Commit b3702cb

Browse files
committed
fix hit and run addHour
1 parent 03c65b6 commit b3702cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Repositories/HitAndRunRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ private function doCronjobUpdateStatus(array $setting, $uid = null, $torrentId =
215215
}
216216

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

0 commit comments

Comments
 (0)