Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit ed55034

Browse files
committed
Fix mistake during rebase
1 parent faf2c75 commit ed55034

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/HttpApi/Controllers/FetchChannelsController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
use Illuminate\Http\Request;
77
use Illuminate\Support\Collection;
88
use React\Promise\PromiseInterface;
9+
use Symfony\Component\HttpKernel\Exception\HttpException;
910
use BeyondCode\LaravelWebSockets\PubSub\ReplicationInterface;
1011
use BeyondCode\LaravelWebSockets\WebSockets\Channels\PresenceChannel;
11-
use Symfony\Component\HttpKernel\Exception\HttpException;
1212

1313
class FetchChannelsController extends Controller
1414
{
@@ -47,7 +47,7 @@ public function __invoke(Request $request)
4747

4848
// We return a promise since the backend runs async. We get $counts back
4949
// as a key-value array of channel names and their member count.
50-
return $memberCounts->then(function (array $counts) use ($channels) {
50+
return $memberCounts->then(function (array $counts) use ($channels, $attributes) {
5151
return $this->collectUserCounts($channels, $attributes, function (PresenceChannel $channel) use ($counts) {
5252
return $counts[$channel->getChannelName()];
5353
});
@@ -67,7 +67,7 @@ protected function collectUserCounts(Collection $channels, array $attributes, ca
6767
if (in_array('user_count', $attributes)) {
6868
$info->user_count = $transformer($channel);
6969
}
70-
70+
7171
return $info;
7272
})->toArray() ?: new \stdClass,
7373
];

0 commit comments

Comments
 (0)