mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Merge branch 'affiliate-program' of https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0 into vapor/staging
This commit is contained in:
@@ -17,7 +17,7 @@ class TracksAffiliateRegistration
|
||||
* @param User $user
|
||||
* @return Affiliate|null
|
||||
*/
|
||||
public function execute(User $user, string $code): ?Affiliate
|
||||
public function execute(User $user, ?string $code = null): ?Affiliate
|
||||
{
|
||||
if (!$code || !$this->isValidCode($code)) {
|
||||
Log::info('Code is not valid', ['code' => $code]);
|
||||
|
||||
Reference in New Issue
Block a user