Преглед изворни кода

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

Shun Miyazawa пре 9 месеци
родитељ
комит
59feb5f202
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

@@ -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);