Add checking if customer's mobile app flag is already true. #699
This commit is contained in:
parent
ca3bd52004
commit
191c2191d5
1 changed files with 7 additions and 3 deletions
|
|
@ -53,9 +53,13 @@ class SetCustomerMobileAppFlagCommand extends Command
|
||||||
$customer = $this->em->getRepository(Customer::class)->find($cust_id);
|
$customer = $this->em->getRepository(Customer::class)->find($cust_id);
|
||||||
if ($customer != null)
|
if ($customer != null)
|
||||||
{
|
{
|
||||||
error_log('Setting customer mobile app flag to true for ' . $cust_id);
|
// check if customer mobile app flag is already set to true
|
||||||
// set mobile app flag
|
if ($customer->hasMobileApp() == false)
|
||||||
$customer->setHasMobileApp();
|
{
|
||||||
|
error_log('Setting customer mobile app flag to true for ' . $cust_id);
|
||||||
|
// set mobile app flag
|
||||||
|
$customer->setHasMobileApp();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue