Fix history not loading
This commit is contained in:
+2
-2
@@ -41,7 +41,7 @@ public interface NameHistoryMapper {
|
||||
FROM all_punishments
|
||||
INNER JOIN user_lookup
|
||||
ON user_lookup.uuid = all_punishments.uuid
|
||||
WHERE all_punishments.${name_column} LIKE #{partialName}
|
||||
WHERE ${name_column} LIKE #{partialName}
|
||||
ORDER BY time DESC
|
||||
LIMIT #{limit} OFFSET #{offset}
|
||||
""")
|
||||
@@ -79,7 +79,7 @@ public interface NameHistoryMapper {
|
||||
removed_by_name, time, until, removed_by_reason
|
||||
FROM ${tableName} AS punishment
|
||||
INNER JOIN user_lookup ON user_lookup.uuid = punishment.uuid
|
||||
WHERE punishment.${name_column} LIKE #{partialName}
|
||||
WHERE ${name_column} LIKE #{partialName}
|
||||
LIMIT #{limit} OFFSET #{offset}
|
||||
""")
|
||||
List<HistoryRecord> getRecentHistory(@Param("tableName") String tableName,
|
||||
|
||||
Reference in New Issue
Block a user