title: Meteor server code forEach statement no longer works
body: <p>I have the following server side code in Meteor, which used to work fine. Now, for some reason, the cursor.forEach(callback) function no longer seems to work.</p>
  
  <pre><code>//// SERVER SIDE CODE
  Meteor.startup(function () {    
  FlickrUserID(apiKey,userName,function(){
      FlickrSetList(apiKey,userID,flickrDB,flickrDBKey,function(){
          var setList = flickrDB.find({name:flickrDBKey});
          setList.forEach(function(eachSetItem){
              var flickrSetID=eachSetItem.data.id;
              FlickrSetPhotos(apiKey,flickrSetID,flickrDBKey);
          });
          Meteor.publish("sets",function(){
              return flickrDB.find(
                  {},
                  {fields: {id:1,data:1,photos:1}}
              );
          });
      });
  });
  });
  </code></pre>
  
  <p>All the functions and the database appear to be working, but for some reason the function inside the setList.forEach function no longer gets triggered. I've tried the function outside the forEach and it works fine, so it appears to be something with the actual forEach function.</p>
  
  <p>I'm stumped and have spent much time trying to figure out where I've gone wrong...is there a typo that I've somehow introduced? Or is there something deeper or elsewhere that may be affecting whether or not the forEach function can run?</p>