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 })