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 websiteColor = requestBody.getString("websiteColor");
|
||||
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<>();
|
||||
rank.insert(callback);
|
||||
callback.get();
|
||||
|
Loading…
Reference in New Issue
Block a user