Test IntelliJ reformatting
This commit is contained in:
parent
3ea54fdfcd
commit
07e2906d0e
@ -193,33 +193,40 @@ public final class APIv3 extends AbstractVerticle {
|
||||
new IndexModel(new Document("user", 1)),
|
||||
new IndexModel(new Document("performedAt", 1)),
|
||||
new IndexModel(new Document("type", 1))
|
||||
), (a, b) -> {});
|
||||
), (a, b) -> {
|
||||
});
|
||||
database.getCollection("grants").createIndexes(ImmutableList.of(
|
||||
new IndexModel(new Document("user", 1)),
|
||||
new IndexModel(new Document("rank", 1)),
|
||||
new IndexModel(new Document("addedAt", 1))
|
||||
), (a, b) -> {});
|
||||
), (a, b) -> {
|
||||
});
|
||||
database.getCollection("ipLog").createIndexes(ImmutableList.of(
|
||||
new IndexModel(new Document("user", 1)),
|
||||
new IndexModel(new Document("user", 1).append("userIp", 1))
|
||||
), (a, b) -> {});
|
||||
), (a, b) -> {
|
||||
});
|
||||
database.getCollection("ipBans").createIndexes(ImmutableList.of(
|
||||
new IndexModel(new Document("userIp", 1))
|
||||
), (a, b) -> {});
|
||||
), (a, b) -> {
|
||||
});
|
||||
database.getCollection("punishments").createIndexes(ImmutableList.of(
|
||||
new IndexModel(new Document("user", 1)),
|
||||
new IndexModel(new Document("type", 1)),
|
||||
new IndexModel(new Document("addedAt", 1)),
|
||||
new IndexModel(new Document("addedBy", 1)),
|
||||
new IndexModel(new Document("linkedIpBanId", 1))
|
||||
), (a, b) -> {});
|
||||
), (a, b) -> {
|
||||
});
|
||||
database.getCollection("users").createIndexes(ImmutableList.of(
|
||||
new IndexModel(new Document("lastUsername", 1)),
|
||||
new IndexModel(new Document("emailToken", 1))
|
||||
), (a, b) -> {});
|
||||
), (a, b) -> {
|
||||
});
|
||||
database.getCollection("userMeta").createIndexes(ImmutableList.of(
|
||||
new IndexModel(new Document("user", 1).append("serverGroup", 1))
|
||||
), (a, b) -> {});
|
||||
), (a, b) -> {
|
||||
});
|
||||
|
||||
BannedAsn.updateCache();
|
||||
BannedCellCarrier.updateCache();
|
||||
|
@ -3,7 +3,9 @@ package net.frozenorb.apiv3.actor;
|
||||
public interface Actor {
|
||||
|
||||
boolean isAuthorized();
|
||||
|
||||
String getName();
|
||||
|
||||
ActorType getType();
|
||||
|
||||
}
|
@ -35,7 +35,6 @@ public enum AuditLogActionType {
|
||||
CHAT_FILTER_ENTRY_UPDATE(false),
|
||||
CHAT_FILTER_ENTRY_DELETE(false),
|
||||
PUNISHMENT_CREATE(true) {
|
||||
|
||||
@Override
|
||||
public void reverse(AuditLogEntry entry, SingleResultCallback<Void> callback) {
|
||||
String punishmentId = (String) entry.getMetadata().get("punishmentId");
|
||||
|
Loading…
Reference in New Issue
Block a user