function findAndReplace(data, next) {
    Model.findById(data.id, function(original_object_err, original_object) {
      if (original_object === null) {
        next();
      } else {
        for (let i = 0; i < options.properties.length; i++) {
          data[options.properties[i]] = data[options.properties[i]] + original_object[options.properties[i]];
        }
        next();
      }
    });
  }
/**
   * [findAndReplace - find data in loopback and update values specified in options.properties]
   * @param  {json}     data [The data inserted into loopback]
   * @param  {Function} next [function called when data is finished being modified]
   * @return {null}          [next is called]
   */
[findAndReplace - find data in loopback and update values specified in options.properties]
@param  {json}     data [The data inserted into loopback]
@param  {Function} next [function called when data is finished being modified]
@return {null}          [next is called]
[ findAndReplace - find data in loopback and update values specified in options . properties ] @param { json } data [ The data inserted into loopback ] @param { Function } next [ function called when data is finished being modified ] @return { null } [ next is called ]
function findAndReplace(data, next) {
    Model.findById(data.id, function(original_object_err, original_object) {
      if (original_object === null) {
        next();
      } else {
        for (let i = 0; i < options.properties.length; i++) {
          data[options.properties[i]] = data[options.properties[i]] + original_object[options.properties[i]];
        }
        next();
      }
    });
  }
function findAndReplace ( data , next ) { Model . findById ( data . id , function ( original_object_err , original_object ) { if ( original_object === null ) { next ( ) ; } else { for ( let i = 0 ; i < options . properties . length ; i ++ ) { data [ options . properties [ i ] ] = data [ options . properties [ i ] ] + original_object [ options . properties [ i ] ] ; } next ( ) ; } } ) ; }
[findAndReplace - find data in loopback and update values specified in options.properties]
 @param  {json}     data [The data inserted into loopback]
 @param  {Function} next [function called when data is finished being modified]
 @return {null}          [next is called]
[ findAndReplace - find data in loopback and update values specified in options . properties ] @param { json } data [ The data inserted into loopback ] @param { Function } next [ function called when data is finished being modified ] @return { null } [ next is called ]