MCPcopy Create free account
hub / github.com/pacexy/flow / updateBook

Method updateBook

apps/reader/src/models/reader.ts:123–131  ·  view source on GitHub ↗
(changes: Partial<BookRecord>)

Source from the content-addressed store, hash-verified

121 }
122
123 updateBook(changes: Partial<BookRecord>) {
124 changes = {
125 ...changes,
126 updatedAt: Date.now(),
127 }
128 // don't wait promise resolve to make valtio batch updates
129 this.book = { ...this.book, ...changes }
130 db?.books.update(this.book.id, changes)
131 }
132
133 annotationRange?: Range
134 setAnnotationRange(cfi: string) {

Callers 6

defineMethod · 0.95
undefineMethod · 0.95
putAnnotationMethod · 0.95
removeAnnotationMethod · 0.95
renderMethod · 0.95
TypographyViewFunction · 0.80

Calls 2

nowMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected