Skip to content

Commit

Permalink
Merge d025a70 into 4c44db3
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega authored Feb 29, 2024
2 parents 4c44db3 + d025a70 commit e4cb681
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- ADD: index for Device model based on {service: 1, subservice: 1, id: 1, apikey: 1} (#1576)
1 change: 1 addition & 0 deletions lib/model/Device.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const Device = new Schema({
});

function load(db) {
Device.index({ service: 1, subservice: 1, id: 1, apikey: 1 });
module.exports.model = db.model('Device', Device);
module.exports.internalSchema = Device;
}
Expand Down

0 comments on commit e4cb681

Please sign in to comment.