title: Node.js mongoose has no method 'save'
body: <p>So, this is the error:</p>
  
  <pre><code>/dev/sth-srv/app/services/notify.js:23
  
  Notify.save(function() {
   TypeError: Object function model(doc, fields, skipId) {
    if (!(this instanceof model))
       return new model(doc, fields, skipId);
    Model.call(this, doc, fields, skipId);
  } has no method 'save'
  </code></pre>
  
  <p>this is model (date is stringified because I wanted to be sure that I'm not doing anything wrong in here):</p>
  
  <pre><code>var mongoose = require('mongoose');
  var notifySchema = new mongoose.Schema({
      to : String,
      type : String,
      date : String,
      what : String,
      who : String,
      status : String
  });
  mongoose.model('Notify', notifySchema);
  module.exports = mongoose.model('Notify', notifySchema);
  </code></pre>
  
  <p>this is object that reaches save method</p>
  
  <pre><code>{ 
  type: 'vote',
  date: 'Sat Feb 21 2015 11:33:58 GMT+0100 (CET)',
  what: 'asdgf12',
  who: 'demouser',
  status: 1,
  to: 'demouser' 
  }
  </code></pre>
  
  <p>this is call for save:</p>
  
  <pre><code>var notify = new Notify(notifyBody);
  Notify.save(function() {
      /.../
  });
  </code></pre>
  
  <p>What makes me unable to figure it out is that it is working in many situations for other models but not this particular one.</p>
  
  <p>Last important info:
  This save func is not called directly from routing but from another file with module.exports. (Model is required).</p>