| 
					
				 | 
			
			
				@ -15,8 +15,8 @@ class SessionRepo { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param handler 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    static getUserSessionsFromMysql(userId,handler){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        let sql ="select session_id from participants w where w.participaint_id = ? group by w.session_id"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        let sessionsql = "select id,name,type,create_date from session s where s.id in("+sql+")"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        let sql ="select session_id from "+IMTABLE.PARTICIPANTS+" w where w.participaint_id = ? group by w.session_id"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        let sessionsql = "select id,name,type,create_date from "+IMTABLE.SESSIONS+" s where s.id in("+sql+")"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        ImDb.execQuery({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            "sql": sessionsql, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            "args": [userId], 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -37,8 +37,8 @@ class SessionRepo { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param handler 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    static getUserStickSessionsFromMysql(userId,handler){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        let sql ="select session_id from participants w where w.participaint_id = ? group by w.session_id"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        let sessionsql = "select s.id,s.name,s.type,s.create_date from session s,sticky_sessions ss  where s.id = ss.session_id s.id in("+sql+")"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        let sql ="select session_id from "+IMTABLE.PARTICIPANTS+" w where w.participaint_id = ? group by w.session_id"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        let sessionsql = "select s.id,s.name,s.type,s.create_date from "+IMTABLE.SESSIONS+" s,"+IMTABLE.STICKY_SESSION+" ss  where s.id = ss.session_id s.id in("+sql+")"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        ImDb.execQuery({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            "sql": sessionsql, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            "args": [userId], 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -59,7 +59,7 @@ class SessionRepo { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param handler 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    static getSessions(sessionId,handler){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        let sessionsql = "select id,name,type,create_date from session s where s.id=?"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        let sessionsql = "select id,name,type,create_date from "+IMTABLE.SESSIONS+" s where s.id=?"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        ImDb.execQuery({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            "sql": sessionsql, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            "args": [sessionId], 
			 |