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 }))