diff --git a/src/main/java/org/ntlab/acanthus_server/resources/gallery/InvitesRest.java b/src/main/java/org/ntlab/acanthus_server/resources/gallery/InvitesRest.java index 3f78f1f..a8b54e7 100644 --- a/src/main/java/org/ntlab/acanthus_server/resources/gallery/InvitesRest.java +++ b/src/main/java/org/ntlab/acanthus_server/resources/gallery/InvitesRest.java @@ -90,8 +90,8 @@ } //既に招待されているかのチェック - for (var invite : invitedAccount.getInvitedMap().values()) { - if(invite.isInviting()){ + for (Account account : animation.getInvites()) { + if (account.getUid() == Integer.parseInt(invitedUid)) { var response = Response.status(401).entity("既にユーザーを招待しています."); throw new WebApplicationException(response.build()); }