mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-19 15:18:35 +01:00
Fix Library undefined sequelize
This commit is contained in:
1 parent
c707bcf0f6
commit
2ae86ab5bb
1 file changed
+1
-1
@@ -188,7 +188,7 @@ class Library extends Model {
|
||||
static async getOldById(libraryId) {
|
||||
if (!libraryId) return null
|
||||
const library = await this.findByPk(libraryId, {
|
||||
include: sequelize.models.libraryFolder
|
||||
include: this.sequelize.models.libraryFolder
|
||||
})
|
||||
if (!library) return null
|
||||
return this.getOldLibrary(library)
|
||||
|
||||
Reference in new issue
Block a user