mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-18 10:59:41 +02:00
Updates to LibraryController to use new Library model
- Additional validation on API endpoints - Removed success toast when reorder libraries
This commit is contained in:
@@ -42,6 +42,18 @@ class LibraryFolder extends Model {
|
||||
})
|
||||
LibraryFolder.belongsTo(library)
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO: Update to use new model
|
||||
*/
|
||||
toOldJSON() {
|
||||
return {
|
||||
id: this.id,
|
||||
fullPath: this.path,
|
||||
libraryId: this.libraryId,
|
||||
addedAt: this.createdAt.valueOf()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = LibraryFolder
|
||||
|
Reference in New Issue
Block a user