server/boot/load-model.js
function populateSnapshot(app, uid, cb) {
  logger.debug('populateSnapshot entry');

  app.models.snapshot.create(
    { id: uid,
      refcount: '1',
      current: 'false' },
    function(err, mymodel) {
      if (err) {
        logger.error('populateSnapshot error');
        cb(err);
        return;
      }
      logger.debug('populateSnapshot exit: %j', mymodel);
      cb();
    });
}
function populateSnapshot(app, uid, cb) {
  logger.debug('populateSnapshot entry');

  app.models.snapshot.create(
    { id: uid,
      refcount: '1',
      current: 'false' },
    function(err, mymodel) {
      if (err) {
        logger.error('populateSnapshot error');
        cb(err);
        return;
      }
      logger.debug('populateSnapshot exit: %j', mymodel);
      cb();
    });
}
function populateSnapshot ( app , uid , cb ) { logger . debug ( 'populateSnapshot entry' ) ; app . models . snapshot . create ( { id : uid , refcount : '1' , current : 'false' } , function ( err , mymodel ) { if ( err ) { logger . error ( 'populateSnapshot error' ) ; cb ( err ) ; return ; } logger . debug ( 'populateSnapshot exit: %j' , mymodel ) ; cb ( ) ; } ) ; }
Initializes new snapshot instance in snapshot model
@param {???} app - loopback application
@param {string} uid - snapshot identifier
@param {callback} cb - callback that handles error or successful completion
Initializes new snapshot instance in snapshot model