From fd7e26372c17631c3919ddbe8f6ae53463f33bab Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Fri, 3 Feb 2017 11:35:16 -0300 Subject: [PATCH] fix index definition --- lib/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/storage.js b/lib/storage.js index 964e2b6..2cb08f2 100644 --- a/lib/storage.js +++ b/lib/storage.js @@ -75,7 +75,7 @@ Storage.prototype._createIndexes = function() { walletId: 1, txid: 1, }); - this.db.collection(collections.PUSH_NOTIFICATION_TOKENS).createIndex({ + this.db.collection(collections.PUSH_NOTIFICATION_SUBS).createIndex({ copayerId: 1, }); };