aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/friends.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/lib/friends.js b/server/lib/friends.js
index 2ea837c99..9b38693c7 100644
--- a/server/lib/friends.js
+++ b/server/lib/friends.js
@@ -245,6 +245,7 @@ function makeRequestsToWinningPods (cert, podsList, callback) {
245 method: 'POST', 245 method: 'POST',
246 json: { 246 json: {
247 host: constants.CONFIG.WEBSERVER.HOST, 247 host: constants.CONFIG.WEBSERVER.HOST,
248 email: constants.CONFIG.ADMIN.EMAIL,
248 publicKey: cert 249 publicKey: cert
249 } 250 }
250 } 251 }
@@ -257,7 +258,7 @@ function makeRequestsToWinningPods (cert, podsList, callback) {
257 } 258 }
258 259
259 if (res.statusCode === 200) { 260 if (res.statusCode === 200) {
260 const podObj = db.Pod.build({ host: pod.host, publicKey: body.cert }) 261 const podObj = db.Pod.build({ host: pod.host, publicKey: body.cert, email: body.email })
261 podObj.save().asCallback(function (err, podCreated) { 262 podObj.save().asCallback(function (err, podCreated) {
262 if (err) { 263 if (err) {
263 logger.error('Cannot add friend %s pod.', pod.host, { error: err }) 264 logger.error('Cannot add friend %s pod.', pod.host, { error: err })