소스 검색

type -> types

Shun Miyazawa 1 년 전
부모
커밋
caf1db17ac
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

@@ -37,7 +37,7 @@ interface AiAssistant {
   description?: string
   description?: string
   instruction?: string
   instruction?: string
   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)
-  type: AiAssistantType[]
+  types: AiAssistantType[]
   pages: mongoose.Types.ObjectId[]
   pages: mongoose.Types.ObjectId[]
   sharingScope: AiAssistantSharingScope
   sharingScope: AiAssistantSharingScope
   learningScope: AiAssistantLearningScope
   learningScope: AiAssistantLearningScope
@@ -67,7 +67,7 @@ const schema = new Schema<AiAssistantDocument>(
       type: String,
       type: String,
       required: true,
       required: true,
     },
     },
-    type: [{
+    types: [{
       type: String,
       type: String,
       enum: Object.values(AiAssistantType),
       enum: Object.values(AiAssistantType),
       required: true,
       required: true,