diff --git a/src/main/java/org/ntlab/citrusserver/repositories/TodoManager.java b/src/main/java/org/ntlab/citrusserver/repositories/TodoManager.java index cb143f2..22a2480 100644 --- a/src/main/java/org/ntlab/citrusserver/repositories/TodoManager.java +++ b/src/main/java/org/ntlab/citrusserver/repositories/TodoManager.java @@ -193,7 +193,7 @@ if(!accountManager.checkToken(accountId, token)){ return -1; } - if(!bookManager.getBooks(accountId).containsKey(bookId)){ + if(!bookManager.getBooks(accountId, token).containsKey(bookId)){ return -1; } if(!todos.containsKey(accountId)){