index.js
function findById(schemaName, id) {
	return new Promise(function(resolve, reject) {
		var Model = db.mongoose.model(schemaName);

		Model
		.findById(id)
		.exec(function(error, result) {
			if (error) {
				reqlog.error('internal server error', error);
				reject(error);
			} else {
				resolve(result || 'notFound');
			}
		});
	});
}
function findById(schemaName, id) {
	return new Promise(function(resolve, reject) {
		var Model = db.mongoose.model(schemaName);

		Model
		.findById(id)
		.exec(function(error, result) {
			if (error) {
				reqlog.error('internal server error', error);
				reject(error);
			} else {
				resolve(result || 'notFound');
			}
		});
	});
}
function findById ( schemaName , id ) { return new Promise ( function ( resolve , reject ) { var Model = db . mongoose . model ( schemaName ) ; Model . findById ( id ) . exec ( function ( error , result ) { if ( error ) { reqlog . error ( 'internal server error' , error ) ; reject ( error ) ; } else { resolve ( result || 'notFound' ) ; } } ) ; } ) ; }
custom findById that has no limitations on the data it can load
@method findById
@param  {string} schemaName The schema to load
@param  {string} id         The Object id to search with
@return {Promise}           Just a promise :p
custom findById that has no limitations on the data it can load