Change 'queueInstantJoin' to 'queueBypassCap' in Rank model

This commit is contained in:
Colin McDonald 2016-08-04 19:11:12 -04:00
parent 68f6f5ea79
commit e0090cdeb5
2 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ public final class Rank {
@Getter private boolean staffRank;
@Getter private boolean grantRequiresTotp;
@Getter private String queueMessage;
@Getter private boolean queueInstantJoin;
@Getter private boolean queueBypassCap;
public static List<Rank> findAll() {
return ImmutableList.copyOf(rankCache);
@ -71,7 +71,7 @@ public final class Rank {
private Rank() {} // For Jackson
public Rank(String id, String inheritsFromId, int generalWeight, int displayWeight, String displayName, String gamePrefix, String gameColor,
String websiteColor, boolean staffRank, boolean grantRequiresTotp, String queueMessage, boolean queueInstantJoin) {
String websiteColor, boolean staffRank, boolean grantRequiresTotp, String queueMessage, boolean queueBypassCap) {
this.id = id;
this.inheritsFromId = inheritsFromId;
this.generalWeight = generalWeight;
@ -83,7 +83,7 @@ public final class Rank {
this.staffRank = staffRank;
this.grantRequiresTotp = grantRequiresTotp;
this.queueMessage = queueMessage;
this.queueInstantJoin = queueInstantJoin;
this.queueBypassCap = queueBypassCap;
}
public void insert(SingleResultCallback<Void> callback) {

View File

@ -27,9 +27,9 @@ public final class POSTRanks implements Handler<RoutingContext> {
boolean staffRank = requestBody.getBoolean("staffRank");
boolean grantRequiresTotp = requestBody.getBoolean("grantRequiresTotp");
String queueMessage = requestBody.getString("queueMessage");
boolean queueInstantJoin = requestBody.getBoolean("queueInstantJoin");
boolean queueBypassCap = requestBody.getBoolean("queueBypassCap");
Rank rank = new Rank(id, inheritsFromId, generalWeight, displayWeight, displayName, gamePrefix, gameColor, websiteColor, staffRank, grantRequiresTotp, queueMessage, queueInstantJoin);
Rank rank = new Rank(id, inheritsFromId, generalWeight, displayWeight, displayName, gamePrefix, gameColor, websiteColor, staffRank, grantRequiresTotp, queueMessage, queueBypassCap);
SyncUtils.<Void>runBlocking(v -> rank.insert(v));
if (requestBody.containsKey("addedBy")) {