cmbf-hapi-restmodel
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -22,2 +22,3 @@ var Joi = require('joi'), | ||
_.merge(this, data); | ||
this.handlers = {}; | ||
} | ||
@@ -197,5 +198,6 @@ | ||
return P.method(function(result) { | ||
var service = _this.handlers[key]; | ||
var service = _this.constructor.handlers[key]; | ||
if(service) { | ||
service.model = _this; | ||
service.Model = _this.constructor; | ||
service.data = result; | ||
@@ -202,0 +204,0 @@ return server.cmbf.service(service); |
{ | ||
"name": "cmbf-hapi-restmodel", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"author": "Joel Grenon <joelgrenon@covistra.com>", | ||
@@ -5,0 +5,0 @@ "description": "Hapi plugin building a REST Api from Joi schema, backed by covistra-mongo plugin", |
38184
605