fix some bugs 2

This commit is contained in:
2026-07-21 21:23:26 +03:30
parent fa15b80c42
commit 227534a493
15 changed files with 895 additions and 2 deletions
@@ -157,6 +157,17 @@ class ReportController extends Controller
})->afterResponse();
}
if ($isFreshPrice && (int) ($payload['price'] ?? 0) > 0) {
$pricePayload = $payload;
if (app()->runningInConsole()) {
app(\App\Services\ConditionalOrderService::class)->evaluateFromLastPrice($pricePayload);
} else {
dispatch(function () use ($pricePayload) {
app(\App\Services\ConditionalOrderService::class)->evaluateFromLastPrice($pricePayload);
})->afterResponse();
}
}
if ($isFreshPrice) {
$cache = app(LivePriceCacheService::class);
$cache->markTick();