fix invalid uuid bug

This commit is contained in:
Josh Harvey 2016-06-17 21:44:55 +03:00
parent c60bd3f02d
commit 588335cae6

View file

@ -160,7 +160,7 @@ exports.addIncomingPhone = function addIncomingPhone (session, tx, notified) {
const sql = `UPDATE cash_out_txs SET phone=$1, notified=$2 const sql = `UPDATE cash_out_txs SET phone=$1, notified=$2
WHERE session_id=$3 WHERE session_id=$3
AND phone IS NULL` AND phone IS NULL`
const values = [tx.phone, notified, session.fingerprint, tx.sessionId] const values = [tx.phone, notified, tx.sessionId]
return db.result(sql, values) return db.result(sql, values)
.then(results => { .then(results => {