From 2564370087de8365322b7d60098a0b31a8ef7ddc Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Mon, 10 Nov 2014 16:32:55 -0300 Subject: [PATCH] default email storage to livenet --- config.js | 8 +++----- js/controllers/settings.js | 1 + js/plugins/InsightStorage.js | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/config.js b/config.js index 6bc3b5f7a..f9bc05470 100644 --- a/config.js +++ b/config.js @@ -61,12 +61,10 @@ var defaultConfig = { EncryptedInsightStorage: true, }, + // This can be changed on the UX > Settings > Insight livenet EncryptedInsightStorage: { - // THIS IS WRONG BUT DO NOT CHANGE IT WITH OUT A MIGRATION PLAN - // ALSO CHANGE THE DEFAULT AT js/plugins/InsightStorage.js - // - url: 'https://test-insight.bitpay.com:443/api/email' - // url: 'http://localhost:3001/api/email' + url: 'https://insight.bitpay.com:443/api/email', + //url: 'http://localhost:3001/api/email' }, GoogleDrive: { diff --git a/js/controllers/settings.js b/js/controllers/settings.js index b09f3f291..bfe125063 100644 --- a/js/controllers/settings.js +++ b/js/controllers/settings.js @@ -93,6 +93,7 @@ angular.module('copayApp.controllers').controller('SettingsController', function defaultLanguage: $scope.selectedLanguage.isoCode, plugins: plugins, logLevel: $scope.selectedLogLevel.name, + EncryptedInsightStorage: {url: insightSettings.livenet.url + '/api/email' }, })); // Go home reloading the application diff --git a/js/plugins/InsightStorage.js b/js/plugins/InsightStorage.js index 799163e9c..7fbbde15b 100644 --- a/js/plugins/InsightStorage.js +++ b/js/plugins/InsightStorage.js @@ -5,7 +5,7 @@ var Identity = require('../models/Identity'); function InsightStorage(config) { this.type = 'DB'; - this.storeUrl = config.url || 'https://test-insight.bitpay.com:443/api/email'; + this.storeUrl = config.url || 'https://insight.bitpay.com:443/api/email', this.request = config.request || request; }