Skip to content

Commit 61800c8

Browse files
committed
fix get presencelist
1 parent 5e87cd3 commit 61800c8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

controllers/customerController.js

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class CustomerController{
2222
.then(customer=>{
2323
res.status(201).json({customer})
2424
}).catch(err=>{
25+
console.log(err);
2526
next(err)
2627
})
2728
}

controllers/presence.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Controller {
1313
}
1414
}
1515

16-
static async getPresence() {
16+
static async getPresence(req, res, next) {
1717
try {
1818
const presenceList = await PresenceList.findAll({include: {model: Appointment}})
1919
res.status(200).json(presenceList)

0 commit comments

Comments
 (0)