Skip to content

Commit

Permalink
Fix unnecessary duplicates when purging lists
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Sep 13, 2024
1 parent 968f5bd commit 8965343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/Lists.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ private function _getListsIdsToPurge($limit = null, $offset = null): array

$guestIds = $query->column();

return array_merge($userIds, $guestIds);
return array_values(array_unique(array_merge($userIds, $guestIds)));
}

}

0 comments on commit 8965343

Please sign in to comment.