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 #122 from braydonf/frameindex
Browse files Browse the repository at this point in the history
Add index to frames for user query
  • Loading branch information
braydonf committed Aug 16, 2017
2 parents 7b711db + 3e4861c commit 07a66ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/models/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ var Frame = new mongoose.Schema({
});

Frame.plugin(SchemaOptions);
Frame.index({user: 1});

Frame.set('toObject', {
transform: function(doc, ret) {
Expand Down

0 comments on commit 07a66ae

Please sign in to comment.