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