From efb51b99f17e163f6b4bb10727d65fce43e6b530 Mon Sep 17 00:00:00 2001
From: Jansa Jose <jansa@techware.in>
Date: Mon, 15 Jul 2019 12:08:24 +0530
Subject: [PATCH] dc

---
 application/models/Webservice_mechanic_model.php | 2 +-
 application/models/Webservice_model.php          | 6 ++----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/application/models/Webservice_mechanic_model.php b/application/models/Webservice_mechanic_model.php
index c741fe0..892676a 100644
--- a/application/models/Webservice_mechanic_model.php
+++ b/application/models/Webservice_mechanic_model.php
@@ -139,7 +139,7 @@ public function mechanic_logout($mechanic_id){
     $respArr['status'] = "success";
     $respArr['message'] = "Logged Out Successfully";
   }
-  return $status;
+  return $respArr;
 }
 
 public function forgot_password($username){
diff --git a/application/models/Webservice_model.php b/application/models/Webservice_model.php
index 2298303..9a71dd2 100644
--- a/application/models/Webservice_model.php
+++ b/application/models/Webservice_model.php
@@ -4,8 +4,8 @@ class Webservice_model extends CI_Model {
     parent::__construct();
     date_default_timezone_set('Asia/Kolkata');
   }
-  /***************************************************************************************/
-  /****************************************Mobile API's***********************************/
+  /*************************************************************************************************/
+  /****************************************Mobile API's*********************************************/
 
   public function checkMobAvailability($data = array()){
     $res = array('status'=>'success', 'message'=>'Mobile Number Available','data'=>array('phone'=>$data['phone'],'is_available'=>true));
@@ -223,7 +223,6 @@ class Webservice_model extends CI_Model {
     if(empty($postData)){
       return $respArr;
     }
-
     if(isset($postData['vehicle_id']) && !empty($postData['vehicle_id'])){
       $result = $this->db->get_where('customer_vehicle',array('customer_veh_id'=>$postData['vehicle_id']))->row();
       $postData['mileage'] = '';
@@ -611,7 +610,6 @@ class Webservice_model extends CI_Model {
       $respArr['message'] = 'Amount is Required';
       return $respArr;
     }
-
     if($this->db->update('mechanic_booking',array('status'=>'1'),array('booking_id'=>$postData['bookingId'],'mechanic_id'=>$postData['mechanicId']))){
       $this->db->update('mechanic_booking',array('status'=>'2'),array('booking_id'=>$postData['bookingId'],'mechanic_id !='=>$postData['mechanicId']));
       $this->db->update('bookings',array('status'=>'5','cost'=>$postData['amount']),array('booking_id'=>$postData['bookingId']));
--
libgit2 0.27.1