From 39a077f03b696f51f8644c09e9b4048453c1f842 Mon Sep 17 00:00:00 2001 From: oleg Date: Thu, 7 Jan 2016 22:27:03 +0300 Subject: [PATCH] fix build get after remove find --- lib/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/build.js b/lib/build.js index 693ee9e..ffcdb93 100644 --- a/lib/build.js +++ b/lib/build.js @@ -39,7 +39,7 @@ BuildsCollection.prototype.cancel = function(params, callback) { }; BuildsCollection.prototype.get = function(id, callback) { - this.find({start: {id: id}}, function(err, builds) { + this.db.builds.find({start: {id: id}}, function(err, builds) { callback(err, builds && builds[0]); }); };