Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
…a-2-server into Sprint-4
  • Loading branch information
kndonetm committed Nov 22, 2023
2 parents 2f61f24 + e0a8bca commit a7ed1e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/models/loan.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ const LoanSchema = new Schema({
approvalDate: {
type: Date
},
dueDate: {
type: Date
},
coborrower: {
name: NameSchema,
birthday: Date,
Expand Down
1 change: 1 addition & 0 deletions src/routes/loans.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ router.put('/new/:username', async (req, res, next) => {
paymentFrequency: req.body.paymentFrequency,
submissionDate: Date.now(),
approvalDate: null,
dueDate: null,
coborrower: req.body.coborrower,
originalLoanAmount: req.body.amount,
ledger: [],
Expand Down

0 comments on commit a7ed1e3

Please sign in to comment.