Varun 7 months ago
commit a36c72f09e

@ -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,

@ -53,7 +53,8 @@ const citySchema = new mongoose.Schema(
city: { type: String },
location: [{ type : String}],
state: String,
country: 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