proton-model
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -13,3 +13,2 @@ 'use strict' | ||
this._bindToApp() | ||
this.expose() | ||
} | ||
@@ -27,3 +26,3 @@ | ||
expose() { | ||
global[this.name] = this | ||
global[this.name] = this.model | ||
return true | ||
@@ -41,3 +40,5 @@ } | ||
_generateModel() { | ||
return this.mongoose.model(this.name, this._buildSchema()) | ||
this.model = this.mongoose.model(this.name, this._buildSchema()) | ||
this.expose() | ||
return this.model | ||
} | ||
@@ -44,0 +45,0 @@ |
{ | ||
"name": "proton-model", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3455
88