@azteam/error
Advanced tools
Comparing version 1.0.20 to 1.0.21
{ | ||
"name": "@azteam/error", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -49,2 +49,10 @@ const {NOT_FOUND, NOT_NULL, UNIQUE, UNKNOWN} = require('./code'); | ||
}); | ||
} else if (e.name === 'MongoServerError') { | ||
if (e.code === 11000) { | ||
errors.push({ | ||
code: UNIQUE, | ||
message: UNIQUE, | ||
data: e.keyValue, | ||
}); | ||
} | ||
} | ||
@@ -51,0 +59,0 @@ } |
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
4770
137