This commit is contained in:
philipp lang 2023-05-03 21:26:27 +02:00
parent 1632da9b61
commit 5357106187
1 changed files with 2 additions and 4 deletions

View File

@ -19,12 +19,10 @@ class FullMemberAction
'courses' => CoursesOfAction::run($api, $memberId),
]);
if (!$redisKey) {
return $fullMember;
if ($redisKey) {
Redis::rpush($redisKey, $fullMember->toJson());
}
Redis::rpush($redisKey, $fullMember->toJson());
return $fullMember;
}
}