Commit 1b93fdc4 by Jansa Jose

change logout api

parent d4892066
......@@ -148,6 +148,7 @@ public function getBookedService($postData = array(),$start = '',$per_page = '',
public function mechanic_logout($mechanic_id){
$respArr = array('status'=>'error');
$status = $this->db->delete('authtable_mechanic',array('mechanic_id'=>$mechanic_id));
$this->db->update('mechanic',array('device_id'=>''),array('mechanic_id'=>$mechanic_id));
if($status){
$respArr['status'] = "success";
$respArr['message'] = "Logged Out Successfully";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment