mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-22 02:29:09 +02:00
Fix Library undefined sequelize
This commit is contained in:
parent
c707bcf0f6
commit
2ae86ab5bb
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ class Library extends Model {
|
||||||
static async getOldById(libraryId) {
|
static async getOldById(libraryId) {
|
||||||
if (!libraryId) return null
|
if (!libraryId) return null
|
||||||
const library = await this.findByPk(libraryId, {
|
const library = await this.findByPk(libraryId, {
|
||||||
include: sequelize.models.libraryFolder
|
include: this.sequelize.models.libraryFolder
|
||||||
})
|
})
|
||||||
if (!library) return null
|
if (!library) return null
|
||||||
return this.getOldLibrary(library)
|
return this.getOldLibrary(library)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue