@rss/common
Advanced tools
Comparing version 0.0.69 to 0.0.70
@@ -31,5 +31,5 @@ 'use strict'; | ||
value: function fillBaseObject(opt) { | ||
this._id = new ObjectId(opt._id); | ||
this._id = opt._id || new ObjectId(); | ||
this.responses = opt.responses; | ||
this.templateId = new ObjectId(opt.templateId); | ||
this.templateId = opt.templateId || new ObjectId(); | ||
this.createdBy = new PersonReference(opt.createdBy); | ||
@@ -36,0 +36,0 @@ this.createdDate = opt.responses ? new Date(opt.responses) : null; |
@@ -51,3 +51,3 @@ 'use strict'; | ||
this.templatePrefix = opt.templatePrefix; | ||
this.stateId = new ObjectId(opt.stateId); | ||
this.stateId = opt.stateId || new ObjectId(); | ||
this.rp = new PersonReference(opt.rp); | ||
@@ -54,0 +54,0 @@ this.groupId = opt.groupId; |
{ | ||
"name": "@rss/common", | ||
"version": "0.0.69", | ||
"version": "0.0.70", | ||
"description": "common constant, classes, & helper", | ||
@@ -5,0 +5,0 @@ "author": "Risk & Safety Solution", |
@@ -21,5 +21,5 @@ const ObjectId = require('bson').ObjectID; | ||
fillBaseObject(opt) { | ||
this._id = new ObjectId(opt._id); | ||
this._id = opt._id || new ObjectId(); | ||
this.responses = opt.responses; | ||
this.templateId = new ObjectId(opt.templateId); | ||
this.templateId = opt.templateId || new ObjectId(); | ||
this.createdBy = new PersonReference(opt.createdBy); | ||
@@ -26,0 +26,0 @@ this.createdDate = opt.responses ? new Date(opt.responses) : null; |
@@ -33,3 +33,3 @@ const ObjectId = require('bson').ObjectID; | ||
this.templatePrefix = opt.templatePrefix; | ||
this.stateId = new ObjectId(opt.stateId); | ||
this.stateId = opt.stateId || new ObjectId(); | ||
this.rp = new PersonReference(opt.rp); | ||
@@ -36,0 +36,0 @@ this.groupId = opt.groupId; |
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
766578
251