Added an index for copayerId in sessions

This commit is contained in:
magmahindenburg 2017-08-16 14:51:25 +09:00
parent 5f3295722b
commit b47dfaeb95
1 changed files with 3 additions and 0 deletions

View File

@ -83,6 +83,9 @@ Storage.prototype._createIndexes = function() {
copayerId: 1,
txid: 1,
});
this.db.collection(collections.SESSIONS).createIndex({
copayerId: 1
});
};
Storage.prototype.connect = function(opts, cb) {