Fix:Get all collections API endpoint crashing server #3372

This commit is contained in:
advplyr 2024-09-05 17:15:38 -05:00
parent 5ec8406653
commit 84b67abb03

View File

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