mongo-express
Advanced tools
Comparing version 0.17.2 to 0.17.3
12
app.js
@@ -270,8 +270,8 @@ /** | ||
app.param('document', function(req, res, next, id) { | ||
//Convert id string to mongodb object ID | ||
try { | ||
var id = new mongodb.ObjectID.createFromHexString(id); | ||
} catch (err) { | ||
req.session.error = "Document not found!"; | ||
return res.redirect('/db/' + req.dbName + '/' + req.collectionName); | ||
if (id.length == 24) { | ||
//Convert id string to mongodb object ID | ||
try { | ||
id = new mongodb.ObjectID.createFromHexString(id); | ||
} catch (err) { | ||
} | ||
} | ||
@@ -278,0 +278,0 @@ |
@@ -0,1 +1,6 @@ | ||
0.17.3 | ||
------ | ||
* Removed requirement for doc IDs to be ObjectID type | ||
0.17.2 | ||
@@ -2,0 +7,0 @@ ------ |
@@ -5,3 +5,3 @@ { | ||
"description": "Web-based admin interface for MongoDB", | ||
"version": "0.17.2", | ||
"version": "0.17.3", | ||
"repository": { | ||
@@ -20,3 +20,2 @@ "type": "git", | ||
"mocha": "1.0.x", | ||
"zombie": "0.13.x", | ||
"chai": "0.5.x", | ||
@@ -23,0 +22,0 @@ "coffee-script": "1.3.x" |
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
3
621521