mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-12-21 06:51:19 +08:00
Sort roles the other way
This commit is contained in:
parent
bb56e86b28
commit
54d308cae3
@ -27,6 +27,6 @@ public interface RolesDAO {
|
||||
@SqlQuery("SELECT id, created_at, name, category, title, color, assignable, rank, permission::bigint FROM roles WHERE id = :id")
|
||||
RoleTable getById(long id);
|
||||
|
||||
@SqlQuery("SELECT id AS roleid, created_at, name AS value, category AS rolecategory, title, color, assignable, rank, permission::bigint AS permissions FROM roles WHERE category = :category ORDER BY rank DESC")
|
||||
@SqlQuery("SELECT id AS roleid, created_at, name AS value, category AS rolecategory, title, color, assignable, rank, permission::bigint AS permissions FROM roles WHERE category = :category ORDER BY rank")
|
||||
List<RoleData> getRoles(RoleCategory category);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user