소스 검색

clean code

Shun Miyazawa 1 년 전
부모
커밋
b52554d2d2
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      apps/app/src/features/openai/server/models/ai-assistant.ts

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

@@ -4,7 +4,7 @@ import { type Model, type Document, Schema } from 'mongoose';
 import { getOrCreateModel } from '~/server/util/mongoose-utils';
 
 /*
-*  AiAssistant Objects
+*  Objects
 */
 const AiAssistantType = {
   KNOWLEDGE: 'knowledge',
@@ -26,7 +26,7 @@ const AiAssistantLearningScope = {
 
 
 /*
-*  AiAssistant interfaces
+*  Interfaces
 */
 type AiAssistantType = typeof AiAssistantType[keyof typeof AiAssistantType];
 type AiAssistantSharingScope = typeof AiAssistantSharingScope[keyof typeof AiAssistantSharingScope];
@@ -49,8 +49,8 @@ type AiAssistantModel = Model<AiAssistantDocument>
 
 
 /*
-*  AiAssistant Schema
-*/
+ * Schema Definition
+ */
 const schema = new Schema<AiAssistantDocument>(
   {
     name: {