fix some bugs 2
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user