mirror of https://github.com/kiwix/libkiwix.git
Library::removeBookById() updates the search DB
This fix makes the `XmlLibraryTest.removeBookByIdUpdatesTheSearchDB` unit-test pass.
This commit is contained in:
parent
aaaa5a637e
commit
ec9186b174
|
@ -106,6 +106,7 @@ bool Library::removeBookmark(const std::string& zimId, const std::string& url)
|
|||
|
||||
bool Library::removeBookById(const std::string& id)
|
||||
{
|
||||
m_bookDB->delete_document("Q" + id);
|
||||
m_readers.erase(id);
|
||||
return m_books.erase(id) == 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue