Skip to content

Commit 3efcc33

Browse files
committed
Fix map which caused tests to fail
1 parent 6d65ac1 commit 3efcc33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Repositories/DatabaseChannelManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function authorized(array $channels): array
5252
{
5353
return Collection::make($channels)
5454
->chunk(self::MAX_CHANNELS_PER_EXECUTION)
55-
->each(function (Collection $channels) {
55+
->map(function (Collection $channels) {
5656
return Channel::query()
5757
->whereIn('id', $channels->map(fn(string $channel) => $this->getKey($channel)))
5858
->where(['revoked' => false])

0 commit comments

Comments
 (0)