added automation
This commit is contained in:
@@ -212,6 +212,7 @@ class WalletController extends Controller
|
||||
} catch (\Throwable $e) {
|
||||
report($e);
|
||||
}
|
||||
\App\Services\Automation\AutomationEvents::fire('wallet.rial_charge', (int) $customer->id);
|
||||
return response()->json(true);
|
||||
}
|
||||
|
||||
@@ -324,6 +325,10 @@ class WalletController extends Controller
|
||||
report($e);
|
||||
}
|
||||
|
||||
if ((float) $data['value'] > 0) {
|
||||
\App\Services\Automation\AutomationEvents::fire('wallet.rial_charge', (int) $customer->id);
|
||||
}
|
||||
|
||||
$this->broadcastCustomerWalletAssets($customer);
|
||||
|
||||
return response()->json(true);
|
||||
|
||||
Reference in New Issue
Block a user