NASER remove tahesab health check for orders :/
This commit is contained in:
@@ -30,9 +30,7 @@ class SingleOrderController extends Controller
|
|||||||
public function store(Request $request)
|
public function store(Request $request)
|
||||||
{
|
{
|
||||||
$goldir = Cnt::where('key', 'goldir_closed')->first();
|
$goldir = Cnt::where('key', 'goldir_closed')->first();
|
||||||
$tahesab = new TahesabController();
|
if(isset($goldir) && $goldir['value'] == "true"){
|
||||||
$healthCheck = $tahesab->healthCheck();
|
|
||||||
if(isset($goldir) && $goldir['value'] == "true" && $healthCheck){
|
|
||||||
throw new UnprocessableEntityHttpException('عدم ارائه سرویس.');
|
throw new UnprocessableEntityHttpException('عدم ارائه سرویس.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user