Update POST /ranks for new Rank constructor
This commit is contained in:
parent
c742b6d01f
commit
f1c9b3666e
|
@ -24,8 +24,9 @@ public final class POSTRanks implements Handler<RoutingContext> {
|
||||||
String gameColor = requestBody.getString("gameColor");
|
String gameColor = requestBody.getString("gameColor");
|
||||||
String websiteColor = requestBody.getString("websiteColor");
|
String websiteColor = requestBody.getString("websiteColor");
|
||||||
boolean staffRank = requestBody.getBoolean("staffRank");
|
boolean staffRank = requestBody.getBoolean("staffRank");
|
||||||
|
boolean higherStaffRank = requestBody.getBoolean("higherStaffRank");
|
||||||
|
|
||||||
Rank rank = new Rank(id, inheritsFromId, weight, displayName, gameColor, websiteColor, staffRank);
|
Rank rank = new Rank(id, inheritsFromId, weight, displayName, gameColor, websiteColor, staffRank, higherStaffRank);
|
||||||
BlockingCallback<Void> callback = new BlockingCallback<>();
|
BlockingCallback<Void> callback = new BlockingCallback<>();
|
||||||
rank.insert(callback);
|
rank.insert(callback);
|
||||||
callback.get();
|
callback.get();
|
||||||
|
|
Loading…
Reference in New Issue