Fix: disable bills query

This commit is contained in:
csrapr 2021-02-26 15:59:01 +00:00 committed by Josh Harvey
parent 8cb4b0bb97
commit 0c2272e880

View file

@ -2,7 +2,8 @@ const db = require('../db')
// Get all bills with device id
const getBills = () => {
return db.any(`
return Promise.reject(new Error('This functionality hasn\'t been implemented yet'))
/* return db.any(`
SELECT d.device_id, b.fiat, b.created, d.cashbox
FROM cash_in_txs
INNER JOIN bills AS b ON b.cash_in_txs_id = cash_in_txs.id
@ -16,7 +17,7 @@ const getBills = () => {
cashbox: item.cashbox,
created: item.created
}))
})
}) */
}
module.exports = {