Przeglądaj źródła

imprv: enable config timestamp

Tatsuya Ise 2 lat temu
rodzic
commit
04a6591e78
1 zmienionych plików z 3 dodań i 0 usunięć
  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 },
   key: { type: String, required: true },
   value: { type: String, required: true },
+}, {
+  timestamps: true,
 });
+
 // define unique compound index
 schema.index({ ns: 1, key: 1 }, { unique: true });
 schema.plugin(uniqueValidator);