From 9e630851a3eef1cb1bd893a2babf7d025b2de3eb Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 4 Sep 2021 21:12:44 -0600 Subject: [PATCH] Update AccountService, fix status bug --- app/Services/AccountService.php | 2 +- app/Services/StatusService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/AccountService.php b/app/Services/AccountService.php index 955e168b..d65f9594 100644 --- a/app/Services/AccountService.php +++ b/app/Services/AccountService.php @@ -25,7 +25,7 @@ class AccountService return Cache::remember($key, $ttl, function() use($id) { $fractal = new Fractal\Manager(); $fractal->setSerializer(new ArraySerializer()); - $profile = Profile::whereNull('status')->findOrFail($id); + $profile = Profile::findOrFail($id); $resource = new Fractal\Resource\Item($profile, new AccountTransformer()); return $fractal->createData($resource)->toArray(); }); diff --git a/app/Services/StatusService.php b/app/Services/StatusService.php index 10fa762f..01d287e8 100644 --- a/app/Services/StatusService.php +++ b/app/Services/StatusService.php @@ -18,7 +18,7 @@ class StatusService { public static function key($id, $publicOnly = true) { - $p = $publicOnly ? '' : 'all:'; + $p = $publicOnly ? 'pub:' : 'all:'; return self::CACHE_KEY . $p . $id; }