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

View File

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