added automation

This commit is contained in:
2026-08-23 14:16:00 +03:30
parent 0c0b424a69
commit 657c10d1cc
19 changed files with 1372 additions and 0 deletions
@@ -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