services/inter_comm/base.js
function () {
    const oThis = this
    ;

    oThis.snmData.lastProcessedBlock = oThis.toBlock;

    fs.writeFileSync(
      oThis.filePath,
      JSON.stringify(oThis.snmData),
      function (err) {
        if (err)
          logger.error(err);
      }
    );

    if (oThis.interruptSignalObtained) {
      logger.info('Exiting Process....');
      process.exit(1);
    }
  }
function () {
    const oThis = this
    ;

    oThis.snmData.lastProcessedBlock = oThis.toBlock;

    fs.writeFileSync(
      oThis.filePath,
      JSON.stringify(oThis.snmData),
      function (err) {
        if (err)
          logger.error(err);
      }
    );

    if (oThis.interruptSignalObtained) {
      logger.info('Exiting Process....');
      process.exit(1);
    }
  }
function ( ) { const oThis = this ; oThis . snmData . lastProcessedBlock = oThis . toBlock ; fs . writeFileSync ( oThis . filePath , JSON . stringify ( oThis . snmData ) , function ( err ) { if ( err ) logger . error ( err ) ; } ) ; if ( oThis . interruptSignalObtained ) { logger . info ( 'Exiting Process....' ) ; process . exit ( 1 ) ; } }
Update intercom data file
Update intercom data file