fix: operator id field content
This commit is contained in:
parent
6dbb3bad34
commit
5b38ac2636
1 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ function mapMachine (rates, settings, machineRow) {
|
||||||
const lastOnline = machineRow.last_online.toISOString()
|
const lastOnline = machineRow.last_online.toISOString()
|
||||||
const status = machineRow.stale ? 'online' : 'offline'
|
const status = machineRow.stale ? 'online' : 'offline'
|
||||||
const showLimitsAndVerification = coinAtmRadar.limitsAndVerification
|
const showLimitsAndVerification = coinAtmRadar.limitsAndVerification
|
||||||
const cashLimit = showLimitsAndVerification ? ( complianceTriggers.getCashLimit(triggers)?.threshold || Infinity ) : null
|
const cashLimit = showLimitsAndVerification ? (_.get('threshold', complianceTriggers.getCashLimit(triggers)) || Infinity) : null
|
||||||
const cryptoCurrencies = locale.cryptoCurrencies
|
const cryptoCurrencies = locale.cryptoCurrencies
|
||||||
const identification = mapIdentification(config)
|
const identification = mapIdentification(config)
|
||||||
const coins = _.map(_.partial(mapCoin, [rates, deviceId, settings]), cryptoCurrencies)
|
const coins = _.map(_.partial(mapCoin, [rates, deviceId, settings]), cryptoCurrencies)
|
||||||
|
|
@ -133,7 +133,7 @@ function sendRadar (data) {
|
||||||
function mapRecord (rates, settings) {
|
function mapRecord (rates, settings) {
|
||||||
const timestamp = new Date().toISOString()
|
const timestamp = new Date().toISOString()
|
||||||
return Promise.all([getMachines(rates, settings), getOperatorId('coinatmradar')])
|
return Promise.all([getMachines(rates, settings), getOperatorId('coinatmradar')])
|
||||||
.then(([machines, operatorId]) => {
|
.then(([machines, { operatorId }]) => {
|
||||||
return {
|
return {
|
||||||
operatorId: operatorId,
|
operatorId: operatorId,
|
||||||
operator: {
|
operator: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue