From 737eacc0ec0a485a49f7ad979174841216241ec8 Mon Sep 17 00:00:00 2001 From: Josh Harvey Date: Tue, 29 May 2018 22:49:36 +0200 Subject: [PATCH] fill in additional null fields for coinatmradar --- lib/coinatmradar/coinatmradar.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/coinatmradar/coinatmradar.js b/lib/coinatmradar/coinatmradar.js index 4639cca8..c28f55a0 100644 --- a/lib/coinatmradar/coinatmradar.js +++ b/lib/coinatmradar/coinatmradar.js @@ -65,6 +65,18 @@ function mapMachine (info, machineRow) { return { machineId: deviceId, + address: { + streetAddress: null, + city: null, + region: null, + postalCode: null, + country: null + }, + location: { + name: null, + url: null, + phone: null + }, status, lastOnline, cashIn: true, @@ -99,6 +111,8 @@ function sendRadar (data) { maxContentLength: MAX_CONTENT_LENGTH } + console.log('%j', data) + return axios(config) .then(r => console.log(r.status)) } @@ -108,6 +122,11 @@ function mapRecord (info) { return getMachines(info) .then(machines => ({ operatorId: options.operatorId, + operator: { + name: null, + phone: null, + email: null + }, timestamp, machines }))