Skip to content

Commit

Permalink
Check if a contact has been deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
vhande committed Apr 16, 2024
1 parent 012a954 commit 8006d7c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public function getByContactEmail(string $email, ?string $searchQuery = null): P
->select('integrations.*')
->join('contacts', 'integrations.id', '=', 'contacts.integration_id')
->where('contacts.email', $email)
->whereNull('contacts.deleted_at')
->when($searchQuery, function (Builder $query, ?string $searchQuery) {
$query->where('integrations.name', 'like', '%' . $searchQuery . '%');
})
Expand Down

0 comments on commit 8006d7c

Please sign in to comment.