Skip to content

Commit

Permalink
Fix APP_NAME env variable and remove call to connection on RedisContr…
Browse files Browse the repository at this point in the history
…oller
  • Loading branch information
danieltrolezi committed Sep 23, 2024
1 parent c8e368a commit f74c735
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions app/Http/Controllers/Admin/RedisController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ class RedisController extends Controller
)]
public function keys(): JsonResponse
{
$redis = Redis::connection(config('database.redis.connection'));
$prefix = config('database.redis.options.prefix');
$keys = $redis->keys('*');
$keys = Redis::keys('*');
$data = [];

foreach ($keys as $key) {
$value = $redis->get(
$value = Redis::get(
str_replace($prefix, '', $key)
);

Expand Down
2 changes: 1 addition & 1 deletion ecs/deployment-task.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
{
"name": "APP_NAME",
"valueFrom": "<SSM_NAMESPACE>/APP_DEBUG"
"valueFrom": "<SSM_NAMESPACE>/APP_NAME"
},
{
"name": "APP_VERSION",
Expand Down

0 comments on commit f74c735

Please sign in to comment.