From 84b67abb03086e827b85d035bfe15ba63085b13f Mon Sep 17 00:00:00 2001 From: advplyr Date: Thu, 5 Sep 2024 17:15:38 -0500 Subject: [PATCH] Fix:Get all collections API endpoint crashing server #3372 --- server/models/Collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/models/Collection.js b/server/models/Collection.js index f2950d4e..a001dc5b 100644 --- a/server/models/Collection.js +++ b/server/models/Collection.js @@ -38,7 +38,7 @@ class Collection extends Model { // Optionally include rssfeed for collection const collectionIncludes = [] - if (include.includes('rssfeed')) { + if (include?.includes('rssfeed')) { collectionIncludes.push({ model: this.sequelize.models.feed })