Skip to content

Commit 50921f2

Browse files
committed
filters need an array as parameter
1 parent 64d797d commit 50921f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OneSignalChannel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function send($notifiable, Notification $notification)
3434

3535
$payload = $notification->toOneSignal($notifiable)->toArray();
3636
if (is_array($userIds) && array_key_exists('email', $userIds)) {
37-
$payload['filters'] = collect(["field" => "email", "relation" => "=", "value" => $userIds['email']]);
37+
$payload['filters'] = collect([["field" => "email", "relation" => "=", "value" => $userIds['email']]]);
3838
} else {
3939
$payload['include_player_ids'] = collect($userIds);
4040
}

0 commit comments

Comments
 (0)