prestamo get

This commit is contained in:
2020-10-03 21:21:05 -05:00
parent 6c022ef57b
commit 1869d3448d
8 changed files with 660 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
const Operador = require('../../db/tables/Operador')
const get = async () => {
return Operador.findAll()
.then((res) => {
return res
})
.catch((err) => {})
}
module.exports = get
+11
View File
@@ -0,0 +1,11 @@
const Prestamo = require('../../db/tables/Prestamo')
const get = async () => {
return Prestamo.findAll()
.then((res) => {
return res
})
.catch((err) => {})
}
module.exports = get
+11
View File
@@ -0,0 +1,11 @@
const Prestamo = require('../../db/tables/Prestamo')
const status = async (body) => {
return Prestamo.findOne({ where: { idPrestamo: body.idPrestamo } })
.then((res) => {
return res
})
.catch((err) => {})
}
module.exports = status
+11
View File
@@ -0,0 +1,11 @@
const Usuario = require('../../db/tables/Usuario')
const get = async (body) => {
return Usuario.findAll({ where: { idUsuario: body.idUsuario } })
.then((res) => {
return res
})
.catch((err) => {})
}
module.exports = get