prestamo get
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user