Skip to content

Commit

Permalink
Fix FCM List
Browse files Browse the repository at this point in the history
  • Loading branch information
MoamenEltouny committed Dec 22, 2023
1 parent 6c5bbac commit 78e8b04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Traits/HasDevices.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public function devicesWithAgents()
*/
public function getFcmListArrtibute()
{
$list = $this->devices()->whereNotNull('fcm_token')->get();
$list = $this->devices()->whereNotNull('fcm_token')->where('logged_out', false)->get();

if ($list->isEmpty())
return null;

Expand Down

0 comments on commit 78e8b04

Please sign in to comment.