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,