From 441e14539d304799cdaca1fa9fc637b10336cb19 Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Mon, 7 Nov 2016 09:49:14 +0100 Subject: [PATCH] fix api-bug --- packages/unleash-api/lib/routes/metrics.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/unleash-api/lib/routes/metrics.js b/packages/unleash-api/lib/routes/metrics.js index 8119c44458..13ee4a1f4d 100644 --- a/packages/unleash-api/lib/routes/metrics.js +++ b/packages/unleash-api/lib/routes/metrics.js @@ -43,8 +43,9 @@ module.exports = function (app, config) { app.post('/client/register', (req, res) => { const data = req.body; const clientIp = req.ip; + console.log(data); clientStrategyStore.insert(data.appName, data.strategies) - .then(() => clientStrategyStore.insert({ + .then(() => clientInstanceStore.insert({ appName: data.appName, instanceId: data.instanceId, clientIp,