added automation
This commit is contained in:
@@ -955,6 +955,8 @@ class SingleOrderController extends Controller
|
||||
} catch (\Throwable $e) {
|
||||
report($e);
|
||||
}
|
||||
$event = (int) ($data['direction'] ?? 0) === 2 ? 'order.sell_success' : 'order.buy_success';
|
||||
\App\Services\Automation\AutomationEvents::fire($event, (int) $customer->id);
|
||||
}
|
||||
|
||||
private function assertProviderOrderAccepted(array &$data): void
|
||||
|
||||
Reference in New Issue
Block a user