feat: add missing types and resolvers
This commit is contained in:
parent
b0417f8375
commit
de98ed4c2c
25 changed files with 127 additions and 12 deletions
|
|
@ -1,25 +0,0 @@
|
|||
const db = require('../db')
|
||||
|
||||
// Get all bills with device id
|
||||
const getBills = () => {
|
||||
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
|
||||
INNER JOIN devices as d ON d.device_id = cash_in_txs.device_id
|
||||
ORDER BY device_id, created DESC`
|
||||
)
|
||||
.then(res => {
|
||||
return res.map(item => ({
|
||||
fiat: item.fiat,
|
||||
deviceId: item.device_id,
|
||||
cashbox: item.cashbox,
|
||||
created: item.created
|
||||
}))
|
||||
}) */
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getBills
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue