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

+ 1 - 4
apps/app/src/features/openai/server/models/thread-relation.ts

@@ -21,10 +21,7 @@ interface ThreadRelationDocument extends ThreadRelation, Document {
   updateThreadExpiration(): Promise<void>;
 }
 
-interface ThreadRelationModel extends Model<ThreadRelationDocument> {
-  upsertThreadRelation(userId: string, threadId: string): Promise<void>;
-  getThreadRelation(userId: string, threadId: string): Promise<ThreadRelationDocument | null>
-}
+type ThreadRelationModel = Model<ThreadRelationDocument>
 
 const schema = new Schema<ThreadRelationDocument, ThreadRelationModel>({
   userId: {