Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
367
func
(m *Ebook) deleteBook(bookId int) {
368
orm.NewOrm().QueryTable(m).Filter(
"book_id"
, bookId).Delete()
369
}
370
371
func
(m *Ebook) setEbookStatus(bookId int, ext string, status int) {
372
if
bookId <= 0 {
Callers
1
callback
Method · 0.95
Calls
1
Delete
Method · 0.45
Tested by
no test coverage detected