ashok 2 months ago
commit c61b971ffe

@ -547,6 +547,7 @@ exports.addDepartment = async (request, reply) => {
location, location,
picture, picture,
dateOfJoin, dateOfJoin,
employeeType,
createdBy, createdBy,
updatedBy, updatedBy,
} = request.body; } = request.body;
@ -591,6 +592,7 @@ exports.addDepartment = async (request, reply) => {
location, location,
picture, picture,
dateOfJoin, dateOfJoin,
employeeType,
createdBy, createdBy,
updatedBy, updatedBy,
}); });

@ -137,6 +137,7 @@ const citySchema = new mongoose.Schema(
country: String, country: String,
picture:{type:String}, picture:{type:String},
dateOfJoin : { type: String }, dateOfJoin : { type: String },
employeeType: {type: String },
services: { password: { bcrypt: String } }, services: { password: { bcrypt: String } },
team_member: { team_member: {

@ -212,6 +212,7 @@ module.exports = function (fastify, opts, next) {
reportingManager_email: { type: "string"}, reportingManager_email: { type: "string"},
picture: { type: "string"}, picture: { type: "string"},
dateOfJoin: { type: "string"}, dateOfJoin: { type: "string"},
employeeType: { type: "string"},
location: { location: {
type: "array", type: "array",
items: { type: "string" }, items: { type: "string" },

Loading…
Cancel
Save