Fix compile

This commit is contained in:
Luck 2022-07-18 21:38:44 +01:00
parent fbc0787a1e
commit 8b0d6fd5d2
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -240,7 +240,7 @@ public class WebEditorRequest {
users.values().stream()
.sorted(Comparator
// sort firstly by the users relative weight (depends on the groups they inherit)
.<User>comparingInt(u -> u.getCachedData().getMetaData(QueryOptions.nonContextual()).getWeight(CheckOrigin.INTERNAL)).reversed()
.<User>comparingInt(u -> u.getCachedData().getMetaData(QueryOptions.nonContextual()).getWeight(CheckOrigin.INTERNAL).intResult()).reversed()
// then, prioritise users we actually have a username for
.thenComparing(u -> u.getUsername().isPresent(), ((Comparator<Boolean>) Boolean::compare).reversed())
// then sort according to their username