chore(server): tweak api for admin
This commit is contained in:
		
							parent
							
								
									a279d50212
								
							
						
					
					
						commit
						423e7692db
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -61,7 +61,7 @@ export default define(meta, paramDef, async (ps, me) => { | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	if (ps.hostname) { | 	if (ps.hostname) { | ||||||
| 		query.andWhere('user.host like :hostname', { hostname: '%' + ps.hostname.toLowerCase() + '%' }); | 		query.andWhere('user.host = :hostname', { hostname: ps.hostname.toLowerCase() }); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	switch (ps.sort) { | 	switch (ps.sort) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue