Skip to content

Commit

Permalink
Merge pull request #223 from rfcx/hotfix/mobile-data-creation-failure…
Browse files Browse the repository at this point in the history
…-on-checkin

fix for bad null check
  • Loading branch information
rassokhin-s authored Aug 24, 2021
2 parents a6e672a + 30d7e14 commit c34d729
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/rfcx-mqtt/mqtt-save-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ exports.saveMeta = {
const dbMetaDataTransfer = []

for (const dtInd in metaDataTransfer) {
const networkBytesRx = (metaDataTransfer[dtInd][6] != null) ? 0 : parseInt(metaDataTransfer[dtInd][6])
const networkBytesTx = (metaDataTransfer[dtInd][7] != null) ? 0 : parseInt(metaDataTransfer[dtInd][7])
const networkTotalBytesRx = (metaDataTransfer[dtInd][8] != null) ? 0 : parseInt(metaDataTransfer[dtInd][8])
const networkTotalBytesTx = (metaDataTransfer[dtInd][9] != null) ? 0 : parseInt(metaDataTransfer[dtInd][9])
const networkBytesRx = (metaDataTransfer[dtInd][6] == null) ? 0 : parseInt(metaDataTransfer[dtInd][6])
const networkBytesTx = (metaDataTransfer[dtInd][7] == null) ? 0 : parseInt(metaDataTransfer[dtInd][7])
const networkTotalBytesRx = (metaDataTransfer[dtInd][8] == null) ? 0 : parseInt(metaDataTransfer[dtInd][8])
const networkTotalBytesTx = (metaDataTransfer[dtInd][9] == null) ? 0 : parseInt(metaDataTransfer[dtInd][9])

dbMetaDataTransfer.push({

Expand Down

0 comments on commit c34d729

Please sign in to comment.