From 4e5b1173d6813928c573fa6f2b2a869ab3e25177 Mon Sep 17 00:00:00 2001 From: Josh Harvey Date: Thu, 7 Apr 2016 16:23:15 +0100 Subject: [PATCH] record cryptoCode for bills table --- lib/postgresql_interface.js | 2 ++ todo.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/postgresql_interface.js b/lib/postgresql_interface.js index 7a089448..779dc33e 100644 --- a/lib/postgresql_interface.js +++ b/lib/postgresql_interface.js @@ -68,6 +68,7 @@ exports.recordBill = function recordBill (session, rec, cb) { 'id', 'device_fingerprint', 'currency_code', + 'crypto_code', 'to_address', 'session_id', 'device_time', @@ -79,6 +80,7 @@ exports.recordBill = function recordBill (session, rec, cb) { rec.uuid, session.fingerprint, rec.currency, + rec.cryptoCode, rec.toAddress, session.id, rec.deviceTime, diff --git a/todo.txt b/todo.txt index 82026517..defc3673 100644 --- a/todo.txt +++ b/todo.txt @@ -31,3 +31,5 @@ alter table bills add crypto_code text default 'BTC'; alter table bills alter satoshis TYPE bigint; - update cryptoCode for bills insert +- test against old server +- remove debug