Просмотр исходного кода

imprv: enable config timestamp

Tatsuya Ise 2 лет назад
Родитель
Сommit
04a6591e78
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      apps/app/src/server/models/config.ts

+ 3 - 0
apps/app/src/server/models/config.ts

@@ -23,7 +23,10 @@ const schema = new Schema<Config>({
   ns: { type: String, required: true },
   ns: { type: String, required: true },
   key: { type: String, required: true },
   key: { type: String, required: true },
   value: { type: String, required: true },
   value: { type: String, required: true },
+}, {
+  timestamps: true,
 });
 });
+
 // define unique compound index
 // define unique compound index
 schema.index({ ns: 1, key: 1 }, { unique: true });
 schema.index({ ns: 1, key: 1 }, { unique: true });
 schema.plugin(uniqueValidator);
 schema.plugin(uniqueValidator);