Skip to content

Commit

Permalink
Merge pull request #4127 from Roardom/fix-adding-group-to-external-tr…
Browse files Browse the repository at this point in the history
…acker

(Fix) Null download slots added to external tracker
  • Loading branch information
HDVinnie authored Sep 1, 2024
2 parents ddd35b2 + dbb3a7b commit bd514ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Services/Unit3dAnnounce.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public static function addGroup(Group $group): bool
return self::put('groups', [
'id' => $group->id,
'slug' => $group->slug,
'download_slots' => (int) $group->download_slots,
'download_slots' => $group->download_slots === null ? null : (int) $group->download_slots,
'is_immune' => (bool) $group->is_immune,
'is_freeleech' => (bool) $group->is_freeleech,
'is_double_upload' => (bool) $group->is_double_upload,
Expand Down

0 comments on commit bd514ac

Please sign in to comment.