fix bug - without affilate code wont be able to register

This commit is contained in:
Edmond Lang
2025-12-11 12:09:29 +08:00
parent 2a4abdd07b
commit 1816173141
@@ -19,6 +19,8 @@ class TracksAffiliateRegistration
*/
public function execute(User $user, ?string $code = null): ?Affiliate
{
// Log::info('TracksAffiliateRegistration::execute', ['user' => $user, 'code' => $code]);
if (!$code || !$this->isValidCode($code)) {
Log::info('Code is not valid', ['code' => $code]);
return null;