fill in additional null fields for coinatmradar

This commit is contained in:
Josh Harvey 2018-05-29 22:49:36 +02:00
parent 2797c75a31
commit 737eacc0ec

View file

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