Fix: disable bills query
This commit is contained in:
parent
8cb4b0bb97
commit
0c2272e880
1 changed files with 3 additions and 2 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue