mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Fix return type issue in BackfillService
This commit is contained in:
@@ -221,10 +221,10 @@ final class BackfillService
|
||||
|
||||
$targetPost = $isArticleBased
|
||||
? (int) round($groupArr['first_record'] - (int) $articles)
|
||||
: $this->binaries->daytopost($groupArr['backfill_target'], $serverData);
|
||||
: (int) $this->binaries->daytopost($groupArr['backfill_target'], $serverData);
|
||||
|
||||
// Ensure target is not below server's oldest article
|
||||
return max($targetPost, $serverData['first']);
|
||||
return max($targetPost, (int) $serverData['first']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user