Browse Source

Populate gratedGroup

Shun Miyazawa 1 year ago
parent
commit
26c00dbc49
1 changed files with 3 additions and 1 deletions
  1. 3 1
      apps/app/src/features/openai/server/services/openai.ts

+ 3 - 1
apps/app/src/features/openai/server/services/openai.ts

@@ -653,7 +653,9 @@ class OpenaiService implements IOpenaiService {
           ],
         },
       ],
-    });
+    })
+      .populate('grantedGroupsForShareScope.item')
+      .populate('grantedGroupsForAccessScope.item');
 
     return {
       myAiAssistants: assistants.filter(assistant => assistant.owner.toString() === user._id.toString()) ?? [],