Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
OH-GITAEK committed Aug 19, 2024
2 parents ca658ba + 63f9b0c commit 90c5654
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 90c5654

Please sign in to comment.