admin page cleanup

This commit is contained in:
onysd 2026-08-05 03:19:01 +03:00
parent 45f79148c2
commit c91fb5ae92
8 changed files with 15 additions and 60 deletions

View file

@ -392,6 +392,7 @@ WHERE NOT u.is_bot
OR lower((u.username)::text) LIKE $3
OR p.username_lower = $4
OR lower(TRIM(BOTH FROM ((u.first_name)::text || ' '::text || (u.last_name)::text))) LIKE $3
OR lower(COALESCE(ap.login_email, '')) LIKE $3
)
AND ($5::bigint = 0 OR (COALESCE(a.last_active_at, '0001-01-01 00:00:00+00'::timestamptz), u.id) < (to_timestamp(($5::double precision) / 1000000.0), $6::bigint))
ORDER BY COALESCE(a.last_active_at, '0001-01-01 00:00:00+00'::timestamptz) DESC, u.id DESC