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

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

@@ -68,7 +68,7 @@ const threadRelationSchema = new Schema<ThreadRelationDocument, ThreadRelationMo
 });
 });
 
 
 
 
-threadRelationSchema.statics.upsertThreadRelation = async function(userId: string, threadId: string) {
+threadRelationSchema.statics.upsertThreadRelation = async function(userId: string, threadId: string): Promise<void> {
   const expirationDate = generateExpirationDate();
   const expirationDate = generateExpirationDate();
 
 
   await this.updateOne(
   await this.updateOne(