model/mongo.js
function (soajs, id, cb) {
		checkForMongo(soajs);
		
		var id1;
		try {
			id1 = mongo.ObjectId(id);
			return id1;
		}
		catch (e) {
			soajs.log.error(e);
			throw e;
		}
	}
function (soajs, id, cb) {
		checkForMongo(soajs);
		
		var id1;
		try {
			id1 = mongo.ObjectId(id);
			return id1;
		}
		catch (e) {
			soajs.log.error(e);
			throw e;
		}
	}
function ( soajs , id , cb ) { checkForMongo ( soajs ) ; var id1 ; try { id1 = mongo . ObjectId ( id ) ; return id1 ; } catch ( e ) { soajs . log . error ( e ) ; throw e ; } }
Validates the mongo object ID
@param {Request Object} req
@param {Callback Function} cb
Validates the mongo object ID