Explorar el Código

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

Shun Miyazawa hace 11 meses
padre
commit
59feb5f202
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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,
   },
 }, {
-  timestamps: { createdAt: true, updatedAt: true },
+  timestamps: { createdAt: false, updatedAt: true },
 });
 
 schema.plugin(mongoosePaginate);