Skip to content

Commit

Permalink
department to branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hardikroongta8 committed Mar 31, 2024
1 parent a6f4c9f commit 1078d8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/khokhaEntryController.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports.addNewEntry = async (req, res, next) => {
rollNumber: req.body.rollNumber,
hostel: req.body.hostel,
program: req.body.program,
department: req.body.department,
branch: req.body.branch,
outTime: Date(),
phoneNumber: req.body.phoneNumber,
roomNumber: req.body.roomNumber,
Expand Down
2 changes: 1 addition & 1 deletion models/KhokhaEntryModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const khokhaEntrySchema = new Schema({
type: String,
required: true
},
department: {
branch: {
type: String,
required: true
},
Expand Down

0 comments on commit 1078d8c

Please sign in to comment.