|
@@ -1869,7 +1869,8 @@ class OrdersController extends Controller
|
|
|
private function exchangeUpdateAndCreated($order_id){
|
|
|
try{
|
|
|
$info = DB::table('orders')->where('id',$order_id)->select('created_at','updated_at')->first();
|
|
|
- DB::table('orders')->update([
|
|
|
+ DB::table('orders')->where('id',$order_id)
|
|
|
+ ->update([
|
|
|
'created_at'=>$info->updated_at,
|
|
|
'updated_at'=>$info->created_at
|
|
|
]);
|