Update documents.ts (#10873)

This commit is contained in:
Tom Moor authored and GitHub committed 2025-12-12 18:46:08 -05:00
1 parent e19b23c22f
commit c3ffcd8d38
1 file changed
+2
+2
View File
@@ -469,6 +469,7 @@ router.post(
]),
required: true,
where: {
teamId: user.teamId,
collectionId: collectionIds,
},
include: [
@@ -522,6 +523,7 @@ router.post(
? [collectionId]
: await user.collectionIds();
const where: WhereOptions = {
teamId: user.teamId,
createdById: user.id,
collectionId: {
[Op.or]: [{ [Op.in]: collectionIds }, { [Op.is]: null }],