contact person added in citySignUP

master^2
Bhaskar 2 months ago
parent e3d87ddb75
commit bf7f9530d1

@ -81,7 +81,9 @@ const generateDepartmentId = async (city, departmentName) => {
gstNo,
googleLocation,
latitude,
longitude
longitude,
nameoftheContactPerson,
} = request.body;
// Generate unique cityId
@ -122,6 +124,7 @@ const generateDepartmentId = async (city, departmentName) => {
googleLocation,
latitude,
longitude,
nameoftheContactPerson,
createdBy,
updatedBy,
});

@ -20,6 +20,7 @@ const citySchema = new mongoose.Schema(
googleLocation: { type: String },
gstNo: { type: String },
city: { type: String },
nameoftheContactPerson: String,
location: [{ type : String}],
state: String,
country: String,

@ -30,6 +30,8 @@ module.exports = function (fastify, opts, next) {
gstNo: { type: "string" },
latitude: { type: 'number', default: 0.0 },
longitude: { type: 'number', default: 0.0 },
nameoftheContactPerson: {type : "string"},
//departmentName: { type: "string" },
},
},

Loading…
Cancel
Save