perf: Remove unneccessary join from documents.viewed

This commit is contained in:
Tom Moor
2022-03-08 16:51:47 -08:00
parent 79ba8dad30
commit c1e8b6c823
2 changed files with 0 additions and 10 deletions

View File

@@ -283,15 +283,6 @@ router.post("documents.viewed", auth(), pagination(), async (ctx) => {
collectionId: collectionIds,
},
include: [
{
model: Star,
as: "starred",
where: {
userId,
},
separate: true,
required: false,
},
{
model: Collection.scope({
method: ["withMembership", userId],