Просмотр исходного кода

Revert "fix refPath"

This reverts commit b321009dfe3875169f2c72c2db649e9723310dc5.
Shun Miyazawa 1 год назад
Родитель
Сommit
5a569b4858
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      apps/app/src/features/openai/server/models/ai-assistant.ts

+ 2 - 2
apps/app/src/features/openai/server/models/ai-assistant.ts

@@ -53,7 +53,7 @@ const schema = new Schema<AiAssistantDocument>(
         },
         item: {
           type: Schema.Types.ObjectId,
-          refPath: 'grantedGroupsForShareScope.type',
+          refPath: 'grantedGroups.type',
           required: true,
           index: true,
         },
@@ -75,7 +75,7 @@ const schema = new Schema<AiAssistantDocument>(
         },
         item: {
           type: Schema.Types.ObjectId,
-          refPath: 'grantedGroupsForAccessScope.type',
+          refPath: 'grantedGroups.type',
           required: true,
           index: true,
         },