Skip to content

Commit bdb6185

Browse files
alexp8Sneer-ra2
andauthored
Develop (#387)
* Duplicate handling. * Added page of list with active duplicates. * Full IP-check for confirmed duplicates. * Simplification. * Removed comment. * Small update. * Added database migration. * Added unit test. * track observers * move comment * update image.php * fix null pointer (#379) * Develop (#380) (#381) * Duplicate handling. * Added page of list with active duplicates. * Full IP-check for confirmed duplicates. * Simplification. * Removed comment. * Small update. * Added database migration. * Added unit test. * track observers * move comment * update image.php * fix null pointer (#379) --------- Co-authored-by: Sneer <forum@snear.de> Co-authored-by: Sneer-ra2 <116219243+Sneer-ra2@users.noreply.github.com> * add more logs (#382) * add more logs * update log * Fix for createPlayer. * fix bug where disconnect gave everyone minus points (#385) * fix bug where disconnect gave everyone minus points * fix ladder info map issue * Improved naming on elo page. * Improved description for duplicate reason. * bug fix --------- Co-authored-by: Sneer <forum@snear.de> Co-authored-by: Sneer-ra2 <116219243+Sneer-ra2@users.noreply.github.com>
1 parent 7c0b9cc commit bdb6185

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cncnet-api/app/Http/Controllers/ApiLadderController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,9 @@ public function awardClanPoints($gameReport, $history)
480480
* Falls back to using a non-defeated player’s team if no player is marked as 'won'.
481481
*
482482
* @param \Illuminate\Support\Collection|\App\Models\PlayerGameReport[] $playerGameReports
483-
* @return int|null The winning team number, or null if none found.
483+
* @return string|null The winning team, or null if none found.
484484
*/
485-
public function getWinningTeamFromReports($playerGameReports): ?int
485+
public function getWinningTeamFromReports($playerGameReports): ?string
486486
{
487487
foreach ($playerGameReports as $pgr)
488488
{

0 commit comments

Comments
 (0)