|
@@ -408,9 +408,9 @@ |
|
|
block discarded – undo |
|
408
|
408
|
try { |
|
409
|
409
|
$order_number = $request->input('order_number'); |
|
410
|
410
|
$orderId = Order::where('number','LIKE',$order_number)->pluck('id')->first(); |
|
411
|
|
- if($orderId){ |
|
|
411
|
+ if($orderId) { |
|
412
|
412
|
$expiryDate = Subscription::where('order_id',$orderId)->pluck('update_ends_at')->first(); |
|
413
|
|
- if(\Carbon\Carbon::now()->toDateTimeString() < $expiryDate->toDateTimeString()){ |
|
|
413
|
+ if(\Carbon\Carbon::now()->toDateTimeString() < $expiryDate->toDateTimeString()) { |
|
414
|
414
|
return ['status' => 'success', 'message' => 'allow-auto-update']; |
|
415
|
415
|
|
|
416
|
416
|
} |
Please login to merge, or discard this patch.