cmbf-hapi-restmodel
Advanced tools
Comparing version 0.6.15 to 0.6.16
@@ -118,3 +118,10 @@ var Joi = require('joi'), | ||
var q = {}; | ||
q[this.idField] = id; | ||
if(_.isObject(id)) { | ||
q = id; | ||
} | ||
else { | ||
q[this.idField] = id; | ||
} | ||
return this.callStaticHandler('pre-show', options)(q).then(function(q) { | ||
@@ -121,0 +128,0 @@ return coll.findOne(q); |
{ | ||
"name": "cmbf-hapi-restmodel", | ||
"version": "0.6.15", | ||
"version": "0.6.16", | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42301
685