@oridune/epic-odm
Advanced tools
Comparing version 1.0.63 to 1.0.64
{ | ||
"name": "@oridune/epic-odm", | ||
"version": "1.0.63", | ||
"version": "1.0.64", | ||
"description": "Install 1 ODM and code once with any database driver.", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -89,5 +89,7 @@ "use strict"; | ||
// Get Field Data Type | ||
const DataType = options.type || | ||
Reflect.getMetadata("design:type", modelInstance, field) || | ||
Object; | ||
const DataType = options.choices instanceof Array | ||
? String | ||
: options.type || | ||
Reflect.getMetadata("design:type", modelInstance, field) || | ||
Object; | ||
// Update Length If Undefined Based on DataType | ||
@@ -94,0 +96,0 @@ if (DataType === Number && options.length === undefined) |
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
118064
2464