Skip to content

Commit

Permalink
[fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
khinwaiyan committed Aug 19, 2024
1 parent 933f136 commit 63f9b0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/controllers/depositController.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ exports.checkDeposit = async(req, res)=>{

const deductionList = deposit.deductionList;
const defendList = deposit.defendList;
const defendCount = deposit.defendList.filter(defend => defend.status === false).length;

res.status(201).send({user, deposit: deposit.deposit, deductionList, defendCount : defendList.length});
res.status(201).send({user, deposit: deposit.deposit, deductionList, defendCount });
} catch(error){
res.status(500).send({message: "보증금 정보를 가져오는 도중 오류가 발생했습니다.", error});
}
Expand Down

0 comments on commit 63f9b0c

Please sign in to comment.