title: Node And Mongodb - run script every 24 hours
body: <p><br/>
  I am using node.js and mongoose. 
  I need a numerical value in every mongoose document to increase by 25,000 every 24 hours.</p>
  
  <p>Is There a better way than:</p>
  
  <pre><code>thing.lastUpdated = new Date();
  </code></pre>
  
  <p>And</p>
  
  <pre><code>if(/* check how many days(if any) since lase update */&gt; 0){
      for(var i = 0;i&lt;days;i++){
          //update value
      }
  }
  </code></pre>