commit
a04ac1383c
|
@ -0,0 +1,44 @@
|
||||||
|
{
|
||||||
|
"bitwise": true,
|
||||||
|
"camelcase": true,
|
||||||
|
"curly": true,
|
||||||
|
"devel": false,
|
||||||
|
"eqeqeq": true,
|
||||||
|
"eqnull": false,
|
||||||
|
"freeze": true,
|
||||||
|
"funcscope": false,
|
||||||
|
"immed": true,
|
||||||
|
"indent": 2,
|
||||||
|
"latedef": "nofunc",
|
||||||
|
"maxcomplexity": 10,
|
||||||
|
"maxdepth": 4,
|
||||||
|
"maxerr": 99999,
|
||||||
|
"maxlen": 120,
|
||||||
|
"maxparams": 4,
|
||||||
|
"maxstatements": 15,
|
||||||
|
"mocha": true,
|
||||||
|
"newcap": true,
|
||||||
|
"noarg": true,
|
||||||
|
"node": true,
|
||||||
|
"noempty": true,
|
||||||
|
"nonew": true,
|
||||||
|
"quotmark": "single",
|
||||||
|
"regexp": true,
|
||||||
|
"smarttabs": false,
|
||||||
|
"strict": true,
|
||||||
|
"trailing": true,
|
||||||
|
"undef": true,
|
||||||
|
"unused": true,
|
||||||
|
"predef": [
|
||||||
|
"after",
|
||||||
|
"afterEach",
|
||||||
|
"before",
|
||||||
|
"beforeEach",
|
||||||
|
"describe",
|
||||||
|
"exports",
|
||||||
|
"it",
|
||||||
|
"xit",
|
||||||
|
"module",
|
||||||
|
"require"
|
||||||
|
]
|
||||||
|
}
|
|
@ -40,6 +40,9 @@ Storage.prototype._createIndexes = function() {
|
||||||
this.db.collection(collections.COPAYERS_LOOKUP).createIndex({
|
this.db.collection(collections.COPAYERS_LOOKUP).createIndex({
|
||||||
copayerId: 1
|
copayerId: 1
|
||||||
});
|
});
|
||||||
|
this.db.collection(collections.COPAYERS_LOOKUP).createIndex({
|
||||||
|
walletId: 1
|
||||||
|
});
|
||||||
this.db.collection(collections.TXS).createIndex({
|
this.db.collection(collections.TXS).createIndex({
|
||||||
walletId: 1,
|
walletId: 1,
|
||||||
id: 1,
|
id: 1,
|
||||||
|
@ -53,6 +56,9 @@ Storage.prototype._createIndexes = function() {
|
||||||
walletId: 1,
|
walletId: 1,
|
||||||
createdOn: -1,
|
createdOn: -1,
|
||||||
});
|
});
|
||||||
|
this.db.collection(collections.TXS).createIndex({
|
||||||
|
txid: 1
|
||||||
|
});
|
||||||
this.db.collection(collections.NOTIFICATIONS).createIndex({
|
this.db.collection(collections.NOTIFICATIONS).createIndex({
|
||||||
walletId: 1,
|
walletId: 1,
|
||||||
id: 1,
|
id: 1,
|
||||||
|
@ -79,6 +85,14 @@ Storage.prototype._createIndexes = function() {
|
||||||
walletId: 1,
|
walletId: 1,
|
||||||
txid: 1,
|
txid: 1,
|
||||||
});
|
});
|
||||||
|
this.db.collection(collections.PREFERENCES).createIndex({
|
||||||
|
walletId: 1
|
||||||
|
});
|
||||||
|
this.db.collection(collections.FIAT_RATES).createIndex({
|
||||||
|
provider: 1,
|
||||||
|
code: 1,
|
||||||
|
ts: 1
|
||||||
|
});
|
||||||
this.db.collection(collections.PUSH_NOTIFICATION_SUBS).createIndex({
|
this.db.collection(collections.PUSH_NOTIFICATION_SUBS).createIndex({
|
||||||
copayerId: 1,
|
copayerId: 1,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue