From ba513282d9248fa8379456568db5ba4094f8d928 Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Tue, 21 Oct 2014 18:45:25 -0400 Subject: [PATCH] not that this mattered. --- lib/bigquery/table.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/bigquery/table.js b/lib/bigquery/table.js index 47030a74a8f..ad6be36272a 100644 --- a/lib/bigquery/table.js +++ b/lib/bigquery/table.js @@ -67,12 +67,13 @@ Table.prototype.copy = function(options, callback) { * @return {ReadableStream} */ Table.prototype.createReadStream = function(query) { + var that = this; var stream = through.obj(); runQuery(query); return stream; function runQuery(query) { - this.makeReq_('', '', '', '', function(err, resp) { + that.makeReq_('', '', '', '', function(err, resp) { if (err) { stream.emit('error', err); stream.end();