diff --git a/src/main/java/org/ntlab/citrusserver/resources/FavoritedRest.java b/src/main/java/org/ntlab/citrusserver/resources/FavoritedRest.java index 3c6ce17..12bac91 100644 --- a/src/main/java/org/ntlab/citrusserver/resources/FavoritedRest.java +++ b/src/main/java/org/ntlab/citrusserver/resources/FavoritedRest.java @@ -37,7 +37,7 @@ public void putFavorited(@PathParam("account_id") String account_id, @PathParam("book_id") Integer book_id, @PathParam("other_account_id") String other_account_id, @FormParam("token") String token){ if(accountManager.checkToken(other_account_id,token)) { favoriteManager.putFavorited(account_id, book_id, other_account_id); - favoriteManager.putFavorites(account_id, other_account_id, book_id);//変更点(要検討) + favoriteManager.putFavorites(other_account_id, account_id, book_id);//変更点(要検討) } } @@ -47,7 +47,9 @@ public void removeFavorited(@PathParam("account_id") String account_id, @PathParam("book_id") Integer book_id, @PathParam("other_account_id") String other_account_id, @QueryParam("token") String token){ if(accountManager.checkToken(account_id,token)) { favoriteManager.removeFavorited(account_id, book_id, other_account_id); - favoriteManager.removeFavorites(account_id, other_account_id, book_id);//変更点(要検討) + favoriteManager.removeFavorites(other_account_id, account_id, book_id);//変更点(要検討) } } } + +