cmbf-hapi-restmodel
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -9,2 +9,3 @@ var Joi = require('joi'), | ||
var dbName = config.get('plugins:restmod:dbname','MAIN'); | ||
var random = server.plugins['covistra-system'].random; | ||
@@ -142,2 +143,6 @@ /** | ||
if(!this[this.constructor.idField]) { | ||
this[this.constructor.idField] = random.id(); | ||
} | ||
log.debug("Retrieving collection %s from db", this.constructor.collection, this.constructor.db); | ||
@@ -144,0 +149,0 @@ var coll = this.constructor.db.collection(this.constructor.collection); |
{ | ||
"name": "cmbf-hapi-restmodel", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"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
35491
548