From f90ded6144a5b1558d18c394c602ca6c5dd4e644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ma=C5=82ecki?= Date: Wed, 16 Apr 2014 15:07:10 +0200 Subject: [PATCH] Fix table name --- lib/postgresql_interface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/postgresql_interface.js b/lib/postgresql_interface.js index 10e1b253..b3bec237 100644 --- a/lib/postgresql_interface.js +++ b/lib/postgresql_interface.js @@ -56,7 +56,7 @@ PostgresqlInterface.prototype.completeTransaction = PostgresqlInterface.prototype._fetchTransaction = function _fetchTransaction(txId, cb) { - this.client.query('SELECT status, txHash FROM transaction WHERE id=$1', + this.client.query('SELECT status, txHash FROM transactions WHERE id=$1', [txId], function (err, rows) { if (err) return cb(err);