index.js
function(seriesCallback) {
                if(!obtainDates) {
                    seriesCallback();
                    return;
                }

                getDatesForPinsFromScraping(pinsThatNeedScrapedDates, null, function (pinDateMap) {
                    for (var i = 0; i < allPinsData.length; i++) {
                        if (allPinsData[i].created_at == null && pinDateMap[allPinsData[i].id] && pinDateMap[allPinsData[i].id].date) {
                            allPinsData[i].created_at = pinDateMap[allPinsData[i].id].date;
                            allPinsData[i].created_at_source = pinDateMap[allPinsData[i].id].source;
                        }
                    }
                    seriesCallback();
                    return;
                });
            }
function(seriesCallback) {
                if(!obtainDates) {
                    seriesCallback();
                    return;
                }

                getDatesForPinsFromScraping(pinsThatNeedScrapedDates, null, function (pinDateMap) {
                    for (var i = 0; i < allPinsData.length; i++) {
                        if (allPinsData[i].created_at == null && pinDateMap[allPinsData[i].id] && pinDateMap[allPinsData[i].id].date) {
                            allPinsData[i].created_at = pinDateMap[allPinsData[i].id].date;
                            allPinsData[i].created_at_source = pinDateMap[allPinsData[i].id].source;
                        }
                    }
                    seriesCallback();
                    return;
                });
            }
function ( seriesCallback ) { if ( ! obtainDates ) { seriesCallback ( ) ; return ; } getDatesForPinsFromScraping ( pinsThatNeedScrapedDates , null , function ( pinDateMap ) { for ( var i = 0 ; i < allPinsData . length ; i ++ ) { if ( allPinsData [ i ] . created_at == null && pinDateMap [ allPinsData [ i ] . id ] && pinDateMap [ allPinsData [ i ] . id ] . date ) { allPinsData [ i ] . created_at = pinDateMap [ allPinsData [ i ] . id ] . date ; allPinsData [ i ] . created_at_source = pinDateMap [ allPinsData [ i ] . id ] . source ; } } seriesCallback ( ) ; return ; } ) ; }
get remaining dates by scraping
get remaining dates by scraping