Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #134 from braydonf/master
Browse files Browse the repository at this point in the history
Add indexes for contact
  • Loading branch information
pgerbes1 committed Oct 11, 2017
2 parents b72d6e1 + ccec7de commit 58565a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/models/contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ ContactSchema.plugin(SchemaOptions);

ContactSchema.index({lastSeen: 1});
ContactSchema.index({responseTime:1,spaceAvailable:1,lastContractSent:1});
ContactSchema.index({reputation:1);
ContactSchema.index({address:1);

ContactSchema.set('toObject', {
virtuals: true,
Expand Down

0 comments on commit 58565a7

Please sign in to comment.