mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-20 07:31:34 +01:00
Add db migration file to change audiobooks to library items with new data model
This commit is contained in:
1 parent
65793f7109
commit
b97ed953f7
17 files changed
+719
-127
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user