Fix missing query node.

This commit is contained in:
James Cole
2020-08-18 17:48:27 +02:00
parent 8e638d1cff
commit 229d4bfe6b
7 changed files with 202 additions and 528 deletions

View File

@@ -149,9 +149,6 @@ class Preferences
*/
public function getForUser(User $user, string $name, $default = null): ?Preference
{
if ('testing' === config('app.env')) {
Log::warning(sprintf('%s("%s") should NOT be called in the TEST environment!', __METHOD__, $name));
}
$fullName = sprintf('preference%s%s', $user->id, $name);
if (Cache::has($fullName)) {
return Cache::get($fullName);