fix: Return memberships of collections (#2501)

This commit is contained in:
Saumya Pandey
2021-08-28 08:33:57 +05:30
committed by GitHub
parent 835fd26a95
commit 86f008293a

View File

@ -383,7 +383,9 @@ router.post("documents.starred", auth(), pagination(), async (ctx) => {
},
include: [
{
model: Collection,
model: Collection.scope({
method: ["withMembership", user.id],
}),
as: "collection",
},
{