Skip to content

Commit

Permalink
Using values method (#95)
Browse files Browse the repository at this point in the history
Co-authored-by: Linh pham <[email protected]>
  • Loading branch information
pnlinh-it and Linh pham authored Mar 18, 2024
1 parent 69e017c commit 7237ff1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function data(): array
return [
'presence' => [
'count' => $connections->count() ?? 0,
'ids' => $connections->map(fn ($connection) => $connection['user_id'])->all(),
'ids' => $connections->map(fn ($connection) => $connection['user_id'])->values()->all(),
'hash' => $connections->keyBy('user_id')->map->user_info->toArray(),
],
];
Expand Down

0 comments on commit 7237ff1

Please sign in to comment.