remove index creation from query methods
This commit is contained in:
parent
e6dba8c824
commit
82d0ba7d27
|
@ -128,9 +128,6 @@ Storage.prototype.storeWalletAndUpdateCopayersLookup = function(wallet, cb) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Storage.prototype.fetchCopayerLookup = function(copayerId, cb) {
|
Storage.prototype.fetchCopayerLookup = function(copayerId, cb) {
|
||||||
this.db.collection(collections.COPAYERS_LOOKUP).createIndex({
|
|
||||||
copayerId: 1
|
|
||||||
});
|
|
||||||
this.db.collection(collections.COPAYERS_LOOKUP).findOne({
|
this.db.collection(collections.COPAYERS_LOOKUP).findOne({
|
||||||
copayerId: copayerId
|
copayerId: copayerId
|
||||||
}, function(err, result) {
|
}, function(err, result) {
|
||||||
|
@ -346,9 +343,6 @@ Storage.prototype.storeAddressAndWallet = function(wallet, addresses, cb) {
|
||||||
Storage.prototype.fetchAddress = function(address, cb) {
|
Storage.prototype.fetchAddress = function(address, cb) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
this.db.collection(collections.ADDRESSES).createIndex({
|
|
||||||
address: 1
|
|
||||||
});
|
|
||||||
this.db.collection(collections.ADDRESSES).findOne({
|
this.db.collection(collections.ADDRESSES).findOne({
|
||||||
address: address,
|
address: address,
|
||||||
}, function(err, result) {
|
}, function(err, result) {
|
||||||
|
|
Loading…
Reference in New Issue