From 0a2a4e91e282d7384061ac7bf8d7c55d519a477f Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 4 Jul 2022 16:34:35 +1000 Subject: [PATCH] Minor fixes for vendor contacts --- app/Repositories/VendorContactRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); });