Skip to content

Commit a9e2383

Browse files
committed
fixing merge conflict
2 parents c5c86a2 + 36064d5 commit a9e2383

File tree

3 files changed

+23
-13
lines changed

3 files changed

+23
-13
lines changed

package-lock.json

Lines changed: 19 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@
4747
"express-rate-limit": "5.1.1",
4848
"express-request-id": "1.4.1",
4949
"helmet": "3.22.0",
50-
"json2csv": "^5.0.0",
50+
"json2csv": "^5.0.1",
5151
"jsonwebtoken": "8.5.1",
5252
"lodash": "^4.17.15",
53-
"mocha": "7.1.1",
53+
"mocha": "7.1.2",
5454
"morgan": "1.10.0",
5555
"nodemailer": "^6.4.6",
5656
"nodemon": "2.0.3",

src/routes/entity.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ router.put('/', async (req, res) => {
9898
let message;
9999
try {
100100
if (validator.isUUID(req.body.id)) {
101-
let { id, name, address, phone, email, checkIn, contacts } = req.body;
101+
let { id, name, type, address, phone, email, checkIn, contacts } = req.body;
102102

103103
/** @todo validate emails */
104104
// Validating emails
@@ -111,6 +111,7 @@ router.put('/', async (req, res) => {
111111
});
112112

113113
entity.name = (name) ? name : entity.name;
114+
entity.type = (type) ? type : entity.type;
114115
entity.address = (address) ? address : entity.address;
115116
entity.phone = (phone) ? phone : entity.phone;
116117
entity.email = (email) ? email : entity.email;

0 commit comments

Comments
 (0)