diff --git a/src/main/java/org/ntlab/citrusserver/repositories/BookManager.java b/src/main/java/org/ntlab/citrusserver/repositories/BookManager.java index fad0974..af3fb10 100644 --- a/src/main/java/org/ntlab/citrusserver/repositories/BookManager.java +++ b/src/main/java/org/ntlab/citrusserver/repositories/BookManager.java @@ -27,8 +27,8 @@ public int createBook(String accountId, String title, String color, Boolean publicity) { Account account = accountManager.getAccount(accountId); //アカウントの取得 - Book book = new Book(title, publicity, color); //本の初期化 int newBookId = account.getNewBookId(); //新たに生成されたIdを取得(作成数もここで加算している) + Book book = new Book(newBookId, title, publicity, color); //本の初期化 booksMap.get(accountId).put(newBookId, book); //ブックに追加 return newBookId; }