From 4793c343fd3cde3c6282ed0fb38e039b4276de0e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 16 Feb 2017 19:19:56 +0100 Subject: Add email to pods --- server/lib/friends.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/lib') 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) { method: 'POST', json: { host: constants.CONFIG.WEBSERVER.HOST, + email: constants.CONFIG.ADMIN.EMAIL, publicKey: cert } } @@ -257,7 +258,7 @@ function makeRequestsToWinningPods (cert, podsList, callback) { } if (res.statusCode === 200) { - const podObj = db.Pod.build({ host: pod.host, publicKey: body.cert }) + const podObj = db.Pod.build({ host: pod.host, publicKey: body.cert, email: body.email }) podObj.save().asCallback(function (err, podCreated) { if (err) { logger.error('Cannot add friend %s pod.', pod.host, { error: err }) -- cgit v1.2.3