@rss/common
Advanced tools
Comparing version 0.0.25 to 0.0.26
@@ -26,3 +26,3 @@ 'use strict'; | ||
this._id = opt._id ? new ObjectId(opt._id) : null; | ||
this.density = opt.density || null; | ||
this.density = opt.density || {}; | ||
} | ||
@@ -29,0 +29,0 @@ }], [{ |
@@ -43,3 +43,5 @@ 'use strict'; | ||
this.message = opt.message || null; | ||
this.sendTo = opt.sendTo || []; | ||
this.sendTo = Array.isArray(opt.sendTo) ? opt.sendTo.map(function (inventory) { | ||
return new InventoryReference(inventory); | ||
}) : []; | ||
} | ||
@@ -46,0 +48,0 @@ }, { |
{ | ||
"name": "@rss/common", | ||
"version": "0.0.25", | ||
"version": "0.0.26", | ||
"description": "common constant, classes, & helper", | ||
@@ -5,0 +5,0 @@ "author": "Risk & Safety Solution", |
@@ -16,3 +16,3 @@ const ObjectId = require('bson').ObjectID; | ||
this._id = opt._id ? new ObjectId(opt._id) : null; | ||
this.density = opt.density || null; | ||
this.density = opt.density || {}; | ||
} | ||
@@ -19,0 +19,0 @@ |
@@ -33,3 +33,3 @@ const ObjectId = require('bson').ObjectID; | ||
this.message = opt.message || null; | ||
this.sendTo = opt.sendTo || []; | ||
this.sendTo = Array.isArray(opt.sendTo) ? opt.sendTo.map((inventory) => new InventoryReference(inventory)) : []; | ||
} | ||
@@ -36,0 +36,0 @@ |
11914
436182
209