mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
fix bug - without affilate code wont be able to register
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user