dist/browser.js in cqm-models-4.1.0 vs dist/browser.js in cqm-models-4.1.1
- old
+ new
@@ -3427,10 +3427,10 @@
mongoose.SchemaType.call(this, key, options, 'Any');
}
Any.prototype = Object.create(mongoose.SchemaType.prototype);
function RecursiveCast(any) {
- if (any && any.value && any.unit) {
+ if (any && any.value !== undefined && any.unit) {
return new cql.Quantity(any.value, any.unit);
}
if (any && any.numerator && any.denominator) {
const numerator = new cql.Quantity(any.numerator.value, any.numerator.unit);