From 2ae86ab5bbc3a897d1e1e7a88043b7410bba5f4d Mon Sep 17 00:00:00 2001 From: advplyr Date: Wed, 16 Aug 2023 14:49:06 -0500 Subject: [PATCH] Fix Library undefined sequelize --- server/models/Library.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/models/Library.js b/server/models/Library.js index 9b1d1ace..37ece3b5 100644 --- a/server/models/Library.js +++ b/server/models/Library.js @@ -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)