Commit 734aac41 by Jansa Jose

Merge branch 'master' of https://gitlab.techware.co.in/timeout/timeOut into jansa

parents 498899be dfd8333e
...@@ -75,10 +75,10 @@ $query_builder = TRUE; ...@@ -75,10 +75,10 @@ $query_builder = TRUE;
$db['default'] = array( $db['default'] = array(
'dsn' => '', 'dsn' => '',
'hostname' => '192.168.140.123', 'hostname' => 'localhost',
'username' => 'root', 'username' => 'nuvento_timeout',
'password' => 'Golden_123', 'password' => 'Golden_123',
'database' => 'tobin_eventTimeOut', 'database' => 'nuvento_timeout',
'dbdriver' => 'mysqli', 'dbdriver' => 'mysqli',
'dbprefix' => '', 'dbprefix' => '',
'pconnect' => FALSE, 'pconnect' => FALSE,
......
...@@ -1896,8 +1896,12 @@ class Webservice_model extends CI_Model { ...@@ -1896,8 +1896,12 @@ class Webservice_model extends CI_Model {
} else { } else {
continue; continue;
} }
$this->db->select("name,phone,profile_image,profile_image_qr,customer_id"); $sql = "SELECT CUST.name,CUST.phone,CUST.profile_image,CUST.profile_image_qr,
$cust = $this->db->get_where('customer',array('customer_id'=>$fromUsrId)); CUST.customer_id,CAUTH.auth_token AS fcm_token
FROM customer AS CUST
INNER JOIN customer_auth AS CAUTH ON (CAUTH.user_id=CUST.customer_id)
WHERE CUST.customer_id='$fromUsrId'";
$cust = $this->db->query($sql);
if(!empty($cust) && !empty($cust = $cust->row_array())){ if(!empty($cust) && !empty($cust = $cust->row_array())){
$custData[] = $cust; $custData[] = $cust;
} }
......
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