Skip to content

Commit

Permalink
Fixing random issues I've found while testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Ford authored and Alex Ford committed Oct 3, 2013
1 parent 3743746 commit 20ddf95
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var mongoose = require('mongoose');
var mongoose = require('mongoose'),
extend = require('extend');

var counterSchema = new mongoose.Schema({
model: {
Expand Down Expand Up @@ -29,10 +30,10 @@ module.exports = exports = function (schema, options) {
ready = false;

switch (typeof(options)) {
case 'String':
case 'string':
settings.model = options;
break;
case 'Object':
case 'object':
extend(settings, options);
break;
}
Expand Down Expand Up @@ -79,4 +80,4 @@ module.exports = exports = function (schema, options) {
setTimeout(save, 5);
})();
});
};
};

0 comments on commit 20ddf95

Please sign in to comment.