guhongwei преди 2 години
родител
ревизия
ceeaacf7c3
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      app/model/program.js

+ 1 - 0
app/model/program.js

@@ -15,6 +15,7 @@ const program = {
 const schema = new Schema(program, { toJSON: { getters: true, virtuals: true } });
 schema.index({ id: 1 });
 schema.index({ 'meta.createdAt': 1 });
+schema.index({ type: 1 });
 schema.index({ name: 1 });
 schema.index({ brief: 1 });
 schema.index({ path: 1 });