diff --git a/src/main/java/com/ntlab/irisserver/resources/MembersRest.java b/src/main/java/com/ntlab/irisserver/resources/MembersRest.java index ece40b5..e0f0cf9 100644 --- a/src/main/java/com/ntlab/irisserver/resources/MembersRest.java +++ b/src/main/java/com/ntlab/irisserver/resources/MembersRest.java @@ -17,7 +17,7 @@ @Path("/rooms") public class MembersRest { - public static void membershuffle(List m) { + public static void membershuffle(String rid, List m) { RoomManager rm = RoomManager.getInstance(); Room room = rm.getRoom(rid); @@ -44,7 +44,6 @@ info.setBelongs("r"); room.setRedMaster(info); - }else{ info.setBelongs("b"); room.setBlueMaster(info); @@ -67,7 +66,7 @@ String owner = room.getOwnerName(); if(nickname.equals(owner)) { //全員の役職を変更 - membershuffle(gm); + membershuffle(rid, gm); }else{ var response = Response.status(401).entity("あなたはオーナーではありません"); throw new WebApplicationException(response.build());