MCPcopy Index your code
hub / github.com/TruthHun/BookStack / deleteBook

Method deleteBook

models/ebook.go:367–369  ·  view source on GitHub ↗
(bookId int)

Source from the content-addressed store, hash-verified

365}
366
367func (m *Ebook) deleteBook(bookId int) {
368 orm.NewOrm().QueryTable(m).Filter("book_id", bookId).Delete()
369}
370
371func (m *Ebook) setEbookStatus(bookId int, ext string, status int) {
372 if bookId <= 0 {

Callers 1

callbackMethod · 0.95

Calls 1

DeleteMethod · 0.45

Tested by

no test coverage detected