From d609c44388204f8920d300abe59cb2402937b509 Mon Sep 17 00:00:00 2001 From: Joel Cripps Date: Tue, 1 Aug 2023 14:56:48 -0700 Subject: [PATCH] change to primary IP instead of master --- index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index 0a4039b..21af286 100644 --- a/index.ts +++ b/index.ts @@ -1085,8 +1085,8 @@ exports.main = async function(req, res, callback) { callback = (err, data) => { //Primary record exists and there is a null/no body returned from core. Then return primary-ip from database. if (getPrimaryRecord && !data.body) { - console.log('Response', { 'master-ip': getPrimaryRecord.ip }); - res.status(200).send({ 'master-ip': getPrimaryRecord.ip }); + console.log('Response', { 'primary-ip': getPrimaryRecord.ip }); + res.status(200).send({ 'primary-ip': getPrimaryRecord.ip }); res.end(); } else { // return bootstrap or initial primary-ip