mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
fix carbon 3 diffIn*
This commit is contained in:
@@ -225,7 +225,7 @@ class ClaimRepository extends BaseRepository
|
||||
$uploadedCaseWhen[] = sprintf('when %s then %s', $row->id, $row->snatch->uploaded);
|
||||
} else {
|
||||
$targetStartOfMonth = $row->created_at->startOfMonth();
|
||||
if ($startOfThisMonth->diffInMonths($targetStartOfMonth) > 1) {
|
||||
if ($startOfThisMonth->diffInMonths($targetStartOfMonth, true) > 1) {
|
||||
do_log("[UNREACHED_REMOVE], uid: $uid, torrent: " . $row->torrent_id);
|
||||
$unReachedIdArr[] = $row->id;
|
||||
$unReachedTorrentIdArr[] = $row->torrent_id;
|
||||
|
||||
Reference in New Issue
Block a user