Skip to content

fix(server): where clause when updating tag on a file in a whole book

Pokhi requested to merge fix/1405 into develop

Targets: #1405 (closed)

Changes proposed

When updating the tag for a file, check whether the file has a bookComponentId or not. If it is not there (i.e., in the case of wholebook), use the bookId to query the Files.

In the earlier implementation, even a wholebook used to have one bookComponent associated with it. However, we changed this during the book version feature which probably broke this functionality.

Note for testing

This should be tested for both whole-book and chapter processed book.

Edited by Pokhi

Merge request reports