mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-02 21:44:56 +02:00
Add db migration file to change audiobooks to library items with new data model
This commit is contained in:
parent
65793f7109
commit
b97ed953f7
17 changed files with 719 additions and 127 deletions
|
@ -6,7 +6,7 @@ class EBookFile {
|
|||
this.metadata = null
|
||||
this.ebookFormat = null
|
||||
this.addedAt = null
|
||||
this.lastUpdate = null
|
||||
this.updatedAt = null
|
||||
|
||||
if (file) {
|
||||
this.construct(file)
|
||||
|
@ -18,7 +18,7 @@ class EBookFile {
|
|||
this.metadata = new FileMetadata(file)
|
||||
this.ebookFormat = file.ebookFormat
|
||||
this.addedAt = file.addedAt
|
||||
this.lastUpdate = file.lastUpdate
|
||||
this.updatedAt = file.updatedAt
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
|
@ -27,7 +27,7 @@ class EBookFile {
|
|||
metadata: this.metadata.toJSON(),
|
||||
ebookFormat: this.ebookFormat,
|
||||
addedAt: this.addedAt,
|
||||
lastUpdate: this.lastUpdate
|
||||
updatedAt: this.updatedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue