diff --git a/server/api/documents.js b/server/api/documents.js index bda3fe6c..ecdd95a7 100644 --- a/server/api/documents.js +++ b/server/api/documents.js @@ -383,7 +383,9 @@ router.post("documents.starred", auth(), pagination(), async (ctx) => { }, include: [ { - model: Collection, + model: Collection.scope({ + method: ["withMembership", user.id], + }), as: "collection", }, {