diff --git a/app/Repositories/VendorContactRepository.php b/app/Repositories/VendorContactRepository.php index 049b4acdfac7..1df37b6846da 100644 --- a/app/Repositories/VendorContactRepository.php +++ b/app/Repositories/VendorContactRepository.php @@ -32,7 +32,7 @@ class VendorContactRepository extends BaseRepository } /* Get array of IDs which have been removed from the contacts array and soft delete each contact */ - $vendor->contacts->pluck('id')->diff($contacts->pluck('id'))->each(function ($contact) { + $vendor->contacts->pluck('hashed_id')->diff($contacts->pluck('id'))->each(function ($contact) { VendorContact::destroy($contact); });