Skip to content

Commit

Permalink
More comment cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Agon Bina committed Apr 22, 2014
1 parent 1ecd8d9 commit 356d3d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = function(modelName, schema, mongoose) {
return query;
};

// Returns a Todo by it's id
// Returns a Model by it's id
Store.prototype.find = function (params, callback) {
if (typeof params === 'function') {
callback = params;
Expand All @@ -80,10 +80,9 @@ module.exports = function(modelName, schema, mongoose) {
};

Store.prototype.create = function (data, params, callback) {
// Create our actual Todo object so that we only get what we really want
// Create our actual Model object so that we only get what we really want
var obj = new this.model(data);
obj.save(function (err, data) {
//console.log(err, data);
callback(err, data);
});
};
Expand Down

0 comments on commit 356d3d4

Please sign in to comment.