Varun 7 months ago
commit a36c72f09e

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

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

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

Loading…
Cancel
Save