Limit returned usernames to 1
This commit is contained in:
parent
a55806e5dd
commit
b71ea7da8b
|
|
@ -12,7 +12,8 @@ public interface RecentNamesMapper {
|
|||
SELECT DISTINCT name AS username
|
||||
FROM litebans_history
|
||||
WHERE uuid = #{uuid}
|
||||
ORDER BY date DESC;
|
||||
ORDER BY date DESC
|
||||
LIMIT 1;
|
||||
""")
|
||||
String getUsername(@Param("uuid") String uuid);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user