From 4391ad087cea05e716c8bb03b1ee01c37361f736 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 29 Nov 2019 21:41:07 +1100 Subject: [PATCH] Fixes for client contacts updating (#3104) --- app/Http/Controllers/ClientController.php | 2 +- app/Http/Middleware/QueryLogging.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/ClientController.php b/app/Http/Controllers/ClientController.php index 78d70bfb8dc8..cb724e13f725 100644 --- a/app/Http/Controllers/ClientController.php +++ b/app/Http/Controllers/ClientController.php @@ -287,7 +287,7 @@ class ClientController extends BaseController $this->uploadLogo($request->file('company_logo'), $client->company, $client); - return $this->itemResponse($client); + return $this->itemResponse($client->fresh()); } diff --git a/app/Http/Middleware/QueryLogging.php b/app/Http/Middleware/QueryLogging.php index 128144656e87..4611c74e6d5a 100644 --- a/app/Http/Middleware/QueryLogging.php +++ b/app/Http/Middleware/QueryLogging.php @@ -50,7 +50,7 @@ class QueryLogging Log::info($request->method() . ' - ' . $request->url() . ": $count queries - " . $time); // if($count > 50) - // Log::info($queries); + Log::info($queries); } }