I would like to know if there is a way to write the following code quicker.
items.getAll() callback has to take the same arguments as database.query() callback. So I just would like to "rethrow" the callback without changing it.
items.getAll = function(callback){
database.query('SELECT * FROM items', function(err, rows){
callback(err, rows);
});
};