From 956851e97ec70ccdb031136b75c23d21043c958d Mon Sep 17 00:00:00 2001 From: hanikshakumar Date: Mon, 10 Feb 2025 14:02:45 +0530 Subject: [PATCH] Update loan.model.js --- loan.model.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loan.model.js b/loan.model.js index 12e2f3d..a7a2020 100644 --- a/loan.model.js +++ b/loan.model.js @@ -9,7 +9,7 @@ const LoanSchema = new Schema({ }, emiDuration: { type: Number, - required: true + required: false }, startDate: { type: Date, @@ -44,4 +44,4 @@ const LoanSchema = new Schema({ const Loan = mongoose.model("Loan", LoanSchema); -module.exports = Loan \ No newline at end of file +module.exports = Loan