proton-model
Advanced tools
Comparing version 1.1.8 to 1.1.9
@@ -48,5 +48,5 @@ 'use strict' | ||
console.log('Schema', this.mongoose.Schema, this._schema) | ||
// this._createStaticMethods(constructor) | ||
// this._createInstanceMethods(prototype) | ||
// this._createVirtualMethods(prototype) | ||
this._createStaticMethods(constructor) | ||
// this._createInstanceMethods(prototype) | ||
// this._createVirtualMethods(prototype) | ||
return this._schema | ||
@@ -70,3 +70,3 @@ | ||
if (this._isStaticMethod(name, method)) { | ||
this._schema.static(name, method.value) | ||
this._schema.statics[name] = method.value | ||
} | ||
@@ -73,0 +73,0 @@ }) |
{ | ||
"name": "proton-model", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3527