mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
refactor: remove problematic projection pipelines in getResourcePermissions for document db aws compatibility
This commit is contained in:
parent
6bbefcd16e
commit
c62a23fafc
1 changed files with 0 additions and 26 deletions
|
|
@ -191,19 +191,6 @@ const getResourcePermissions = async (req, res) => {
|
|||
localField: 'principalId',
|
||||
foreignField: '_id',
|
||||
as: 'userInfo',
|
||||
pipeline: [
|
||||
{
|
||||
$project: {
|
||||
_id: 1,
|
||||
name: 1,
|
||||
username: 1,
|
||||
email: 1,
|
||||
avatar: 1,
|
||||
idOnTheSource: 1,
|
||||
provider: 1,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
// Lookup Group information (for group principals)
|
||||
|
|
@ -213,19 +200,6 @@ const getResourcePermissions = async (req, res) => {
|
|||
localField: 'principalId',
|
||||
foreignField: '_id',
|
||||
as: 'groupInfo',
|
||||
pipeline: [
|
||||
{
|
||||
$project: {
|
||||
_id: 1,
|
||||
name: 1,
|
||||
email: 1,
|
||||
description: 1,
|
||||
avatar: 1,
|
||||
idOnTheSource: 1,
|
||||
source: 1,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
// Project final structure
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue