diff --git a/src/controllers/departmentController.js b/src/controllers/departmentController.js index 7e8de3f5..91832060 100644 --- a/src/controllers/departmentController.js +++ b/src/controllers/departmentController.js @@ -475,6 +475,7 @@ exports.addDepartment = async (request, reply) => { pincode, desginationName, location, + picture, createdBy, updatedBy, } = request.body; @@ -517,6 +518,7 @@ exports.addDepartment = async (request, reply) => { pincode, desginationName, location, + picture, createdBy, updatedBy, }); diff --git a/src/models/Department.js b/src/models/Department.js index e6e0420e..722dc6a4 100644 --- a/src/models/Department.js +++ b/src/models/Department.js @@ -98,6 +98,7 @@ const citySchema = new mongoose.Schema( personal_city: { type: String }, state: String, country: String, + picture:{type:String}, services: { password: { bcrypt: String } }, createdAt: { type: Date, diff --git a/src/routes/departmentRoute.js b/src/routes/departmentRoute.js index e5e7f4b2..4fec9e1c 100644 --- a/src/routes/departmentRoute.js +++ b/src/routes/departmentRoute.js @@ -204,6 +204,7 @@ module.exports = function (fastify, opts, next) { officeName: { type: "string"}, reportingManager_mobile_number: { type: "string"}, reportingManager_email: { type: "string"}, + picture: { type: "string"}, location: { type: "array", items: { type: "string" },