Parcourir la source

refactor: update timestamps configuration to disable createdAt field in ThreadRelation schema

Shun Miyazawa il y a 9 mois
Parent
commit
59feb5f202
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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

@@ -50,7 +50,7 @@ const schema = new Schema<ThreadRelationDocument, ThreadRelationModel>({
     required: true,
     required: true,
   },
   },
 }, {
 }, {
-  timestamps: { createdAt: true, updatedAt: true },
+  timestamps: { createdAt: false, updatedAt: true },
 });
 });
 
 
 schema.plugin(mongoosePaginate);
 schema.plugin(mongoosePaginate);