Clear cache when updating account

This commit is contained in:
James Cole 2021-04-10 17:24:20 +02:00
parent 7825fe4f1d
commit e07377af86
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -31,6 +31,7 @@ use FireflyIII\Transformers\AccountTransformer;
use Illuminate\Http\JsonResponse;
use League\Fractal\Resource\Item;
use Log;
use Preferences;
/**
* Class UpdateController
@ -75,6 +76,7 @@ class UpdateController extends Controller
$account = $this->repository->update($account, $data);
$manager = $this->getManager();
$account->refresh();
Preferences::mark();
/** @var AccountTransformer $transformer */
$transformer = app(AccountTransformer::class);