mirror of
https://github.com/outline/outline.git
synced 2026-12-06 11:12:32 +03:00
Update documents.ts (#10873)
This commit is contained in:
1 parent
e19b23c22f
commit
c3ffcd8d38
1 file changed
+2
@@ -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 }],
|
||||
|
||||
Reference in new issue
Block a user