diff --git a/backend/src/engine.cpp b/backend/src/engine.cpp index 5a5cacf..d97206f 100644 --- a/backend/src/engine.cpp +++ b/backend/src/engine.cpp @@ -314,6 +314,8 @@ std::vector BookStoreEngineClass::ExecuteMOdify( if (login_stack.top().second == "" || login_stack.top().second == new_ISBN) return std::vector({"Invalid"}); // debugPrint("successfully checked ISBN"); + if (new_ISBN != "" && book_data_base.HaveISBN(new_ISBN)) + return std::vector({"Invalid"}); if (keyword != "") { std::vector key_list; if (!KeyWordSpliter(keyword, key_list, false))