nameoftheContactPerson added in new branch account

master^2
Bhaskar 7 months ago
parent 7766665de3
commit c001f184f3

@ -134,7 +134,8 @@ const generateDepartmentId = async (city, departmentName) => {
pincode,
createdBy,
updatedBy,
email
email,
nameoftheContactPerson
} = request.body;
// Generate departmentId based on departmentName
@ -163,6 +164,7 @@ const generateDepartmentId = async (city, departmentName) => {
country,
pincode,
email,
nameoftheContactPerson,
// departmentName,
createdBy,
updatedBy,

@ -54,6 +54,7 @@ const citySchema = new mongoose.Schema(
location: [{ type : String}],
state: String,
country: String,
nameoftheContactPerson: String,
services: { password: { bcrypt: String } },
createdAt: {
type: Date,

@ -507,6 +507,7 @@ module.exports = function (fastify, opts, next) {
address2: { type: "string" },
zone: { type: "string" },
pincode: { type: "string" },
nameoftheContactPerson: { type: "string"}
//departmentName: { type: "string" },
},
},

Loading…
Cancel
Save