lrf402788946 4 vuotta sitten
vanhempi
commit
b7c51d8c86
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      app/model/dock.js

+ 2 - 0
app/model/dock.js

@@ -41,6 +41,8 @@ const dock = {
 };
 const schema = new Schema(dock, { toJSON: { virtuals: true } });
 schema.index({ id: 1 });
+schema.index({ room_id: 1 });
+schema.index({ start_time: 1 });
 schema.index({ 'meta.createdAt': 1 });
 schema.plugin(metaPlugin);
 module.exports = app => {