From 8a7e84ebb89c2e6188ee0b8c63f0c30a62799904 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 7 Aug 2020 12:32:52 -0500 Subject: [PATCH] delete supply chain contract --- app/Http/Controllers/Contracts/SupplyChainController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Contracts/SupplyChainController.php b/app/Http/Controllers/Contracts/SupplyChainController.php index 0a4480610..f7e8a3190 100644 --- a/app/Http/Controllers/Contracts/SupplyChainController.php +++ b/app/Http/Controllers/Contracts/SupplyChainController.php @@ -134,14 +134,14 @@ class SupplyChainController extends Controller */ $count = SupplyChainContract::where([ 'issuer_id' => auth()->user()->getId(), - 'id' => $request->contractId, + 'contract_id' => $request->contractId, ])->count(); if($count > 0) { //Remove the supply chain contract SupplyChainContract::where([ 'issuer_id' => auth()->user()->getId(), - 'id' => $request->contractId, + 'contract_id' => $request->contractId, ])->delete(); }