server/boot/load-model.js
function(seriesCallback) {
      defaultCatalog['snapshot-id'] = uid;
      app.models['catalog'].create(
        defaultCatalog,
        function(err, mymodel) {
          if (err) {
            logger.error(err);
            seriesCallback(err);
            return;
          }
          logger.debug('%s created: %j', 'catalog', mymodel);
          seriesCallback();
        });
    }
function(seriesCallback) {
      defaultCatalog['snapshot-id'] = uid;
      app.models['catalog'].create(
        defaultCatalog,
        function(err, mymodel) {
          if (err) {
            logger.error(err);
            seriesCallback(err);
            return;
          }
          logger.debug('%s created: %j', 'catalog', mymodel);
          seriesCallback();
        });
    }
function ( seriesCallback ) { defaultCatalog [ 'snapshot-id' ] = uid ; app . models [ 'catalog' ] . create ( defaultCatalog , function ( err , mymodel ) { if ( err ) { logger . error ( err ) ; seriesCallback ( err ) ; return ; } logger . debug ( '%s created: %j' , 'catalog' , mymodel ) ; seriesCallback ( ) ; } ) ; }
2. create the "catalog" instances
2 . create the catalog instances