Shun Miyazawa 1 year ago
parent
commit
7653d2ebc9
1 changed files with 1 additions and 1 deletions
  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();
 
   await this.updateOne(