mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Some code optimalisations.
This commit is contained in:
@@ -24,7 +24,6 @@ namespace FireflyIII\Support;
|
||||
|
||||
use Cache;
|
||||
use Illuminate\Support\Collection;
|
||||
use Preferences as Prefs;
|
||||
|
||||
/**
|
||||
* Class CacheProperties.
|
||||
@@ -44,7 +43,7 @@ class CacheProperties
|
||||
$this->properties = new Collection;
|
||||
if (auth()->check()) {
|
||||
$this->addProperty(auth()->user()->id);
|
||||
$this->addProperty(Prefs::lastActivity());
|
||||
$this->addProperty(app('preferences')->lastActivity());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user