Commit b1659b50 authored by andreagerino's avatar andreagerino

...

parent 462c2a60
......@@ -3,7 +3,7 @@ var router = express.Router();
var debug = require('debug')('Icarus:server');
var mongoClient = require('mongodb').MongoClient;
var objectID = mongoClient.objectId;
var ObjectID = require('mongodb').ObjectID;
var assert = assert = require('assert');
......@@ -33,7 +33,7 @@ router.get('/:resource_id', function(req, res, next) {
var collection = db.collection('resources');
var _id = new objectID(req.params.resource_id);
var _id = new ObjectID(req.params.resource_id);
collection.find({"_id":_id}).limit(1).next(function(err, doc){
if(err!=null){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment