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

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

@@ -41,7 +41,7 @@ interface AiAssistant {
   vectorStoreId: string // VectorStoreId of OpenAI Specify (https://platform.openai.com/docs/api-reference/vector-stores/object)
   vectorStoreId: string // VectorStoreId of OpenAI Specify (https://platform.openai.com/docs/api-reference/vector-stores/object)
   types: AiAssistantType[]
   types: AiAssistantType[]
   creator: Ref<IUser>
   creator: Ref<IUser>
-  grantedGroups: IGrantedGroup[];
+  grantedGroups?: IGrantedGroup[];
   pages: Ref<IPage>[]
   pages: Ref<IPage>[]
   sharingScope: AiAssistantSharingScope
   sharingScope: AiAssistantSharingScope
   learningScope: AiAssistantLearningScope
   learningScope: AiAssistantLearningScope
@@ -108,7 +108,6 @@ const schema = new Schema<AiAssistantDocument>(
         return arr.length === uniqueItemValues.size;
         return arr.length === uniqueItemValues.size;
       }, 'grantedGroups contains non unique item'],
       }, 'grantedGroups contains non unique item'],
       default: [],
       default: [],
-      required: true,
     },
     },
     sharingScope: {
     sharingScope: {
       type: String,
       type: String,