Skip to content

Commit 18b9e58

Browse files
committed
[Twitch API - Helix] Return first channel in channelById() method
1 parent c607c11 commit 18b9e58

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/Repositories/TwitchApiRepository.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ public function channelById($id = '')
8989
throw new TwitchFormatException('String or int expected, got: ' . gettype($id));
9090
}
9191

92-
return $this->channelsByIds([$id]);
92+
$channels = $this->channelsByIds([$id]);
93+
return $channels[0];
9394
}
9495

9596
/**

0 commit comments

Comments
 (0)