From b5c2114cbfcd33a93b6b4ec3715028ba60d71f81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Oliveira?= Date: Thu, 25 Mar 2021 15:16:04 +0000 Subject: [PATCH] fix: remove console log and rename function --- lib/cashbox-batches.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/cashbox-batches.js b/lib/cashbox-batches.js index 155cd95f..a6177cc1 100644 --- a/lib/cashbox-batches.js +++ b/lib/cashbox-batches.js @@ -1,6 +1,6 @@ const db = require('./db') -function createCashBoxBatch (rec) { +function createCashboxBatch (rec) { const sql = 'INSERT INTO cashbox_batches (device_id, created) VALUES ($1, now()) RETURNING *' const sql2 = ` UPDATE bills SET cashbox_batch_id=$1 @@ -11,9 +11,8 @@ function createCashBoxBatch (rec) { ` return db.oneOrNone(sql, [rec.deviceId]) .then(res => { - console.log(res) return db.oneOrNone(sql2, [res.id, res.device_id]) }) } -module.exports = { createCashBoxBatch } +module.exports = { createCashboxBatch }