Update POST /ranks for new Rank constructor

This commit is contained in:
Colin McDonald 2016-06-27 21:57:24 -04:00
parent c742b6d01f
commit f1c9b3666e
1 changed files with 2 additions and 1 deletions

View File

@ -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();