| 
					
				 | 
			
			
				@@ -108,7 +108,7 @@ client.findById=async function(cid,attributes){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     var staffDetail=[]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     var sqlQuery = 'SELECT b.* FROM CLD_client_staff as a left join CLD_staff as b on (a.sid=b.sid) where a.cid=?'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    await this.sequelize.query(sqlQuery, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    sequelize.query(sqlQuery, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     		  { replacements: [cid], type: sequelize.QueryTypes.SELECT } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     		).then(function(projects) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     		  console.log(projects[0]) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -116,9 +116,9 @@ client.findById=async function(cid,attributes){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    await this.sequelize.query('SELECT b.* FROM CLD_client_staff as a left join CLD_staff as b on (a.sid=b.sid) where a.cid=7').spread((results, metadata) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        staffDetail=results[0]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//    await this.sequelize.query('SELECT b.* FROM CLD_client_staff as a left join CLD_staff as b on (a.sid=b.sid) where a.cid=7').spread((results, metadata) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        staffDetail=results[0]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//    }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     detail['staff']=staffDetail; 
			 |