chore(server): tweak api for admin

This commit is contained in:
syuilo 2022-07-07 18:09:50 +09:00
parent 4ba0d551e0
commit 7e3404e763

View File

@ -61,7 +61,7 @@ export default define(meta, paramDef, async (ps, me) => {
}
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) {