Update BookProgress model and schemas
Updated book progress model in anticipation of the KOReader sync feature. Renamed properties: - renamed "progress" to "percentage" - renamed "pdf_loc" to "pdf_page" - renamed "epub_loc" to "epub_cfi" New properties: - "epub_xpointer", marks the location of an epub in KOReader - "device", the device type that updated the progress - "device_id", the id of the device that updated the progress
This commit is contained in:
@@ -79,8 +79,8 @@
|
||||
await fetch(`/api/books/progress/${bookId}`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
progress: currentProgress,
|
||||
epub_loc: currentLocation,
|
||||
percentage: currentProgress,
|
||||
epub_cfi: currentLocation,
|
||||
completed: currentProgress === 1
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user