MCPcopy Create free account
hub / github.com/TruthHun/BookStack / setEbookStatus

Method setEbookStatus

models/ebook.go:371–376  ·  view source on GitHub ↗
(bookId int, ext string, status int)

Source from the content-addressed store, hash-verified

369}
370
371func (m *Ebook) setEbookStatus(bookId int, ext string, status int) {
372 if bookId <= 0 {
373 return
374 }
375 orm.NewOrm().QueryTable(m).Filter("book_id", bookId).Filter("ext", ext).Update(orm.Params{"status": status})
376}
377
378func (m *Ebook) callback(identify, ebookPath string, errConvert error) {
379 var ebook Ebook

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.45

Tested by

no test coverage detected