From 6e19bc01f5ba4f058f700767bfc6fdffd7bf64c0 Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 25 Nov 2014 21:15:49 +0100 Subject: [PATCH] Because this function generates a lot of queries, i've disabled it for now. --- app/controllers/AccountController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/AccountController.php b/app/controllers/AccountController.php index d7ecedcde8..8401bde5d5 100644 --- a/app/controllers/AccountController.php +++ b/app/controllers/AccountController.php @@ -198,7 +198,8 @@ class AccountController extends BaseController $accounts->each( function (Account $account) { - $transaction = $account->transactions()->orderBy('updated_at', 'DESC')->first(); + //$transaction = $account->transactions()->orderBy('updated_at', 'DESC')->first(); + $transaction = null; if (is_null($transaction)) { $account->lastActionDate = null;