Skip to content

Commit

Permalink
finished .findById
Browse files Browse the repository at this point in the history
  • Loading branch information
abarnhard committed Aug 8, 2014
1 parent 2065028 commit 717d614
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/models/transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ Transfer.save = function(obj, cb){

Transfer.findById = function(id, cb){
id = (typeof id === 'string') ? Mongo.ObjectID(id) : id;
console.log(id);
Transfer.collection.findOne({_id:id}, cb);
};

Expand Down
2 changes: 1 addition & 1 deletion test/unit/transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('Transfer', function(){
});
});
beforeEach(function(done){
cp.execFile(__dirname + '/../scripts/freshdb.sh', [db], {cwd:__dirname + '/../scripts'}, function(){
cp.execFile(__dirname + '/../scripts/freshdb.sh', [db], {cwd: __dirname + '/../scripts'}, function(){
done();
});
});
Expand Down

0 comments on commit 717d614

Please sign in to comment.