name filed removed

master
Naidu 1 year ago
parent 572fea5130
commit 9c489537bc

@ -13,7 +13,7 @@ const supplierController = require("../controllers/supplierController")
exports.installSignUp = async (request, reply) => { exports.installSignUp = async (request, reply) => {
try { try {
const { const {
name, //name,
phone, phone,
address, address,
installationId, installationId,
@ -49,7 +49,7 @@ exports.installSignUp = async (request, reply) => {
// Create a new install object with the hashed password and other details // Create a new install object with the hashed password and other details
const install = new Install({ const install = new Install({
name, //name,
phone, phone,
address, address,
installationId, installationId,

@ -5,7 +5,7 @@ const ObjectId = Schema.Types.ObjectId;
const installationschema = new mongoose.Schema({ const installationschema = new mongoose.Schema({
name: { type: String }, // name: { type: String },
phone: { type: String, unique: true, trim: true }, phone: { type: String, unique: true, trim: true },
address: String, address: String,
installationId: { type: String }, installationId: { type: String },

@ -25,7 +25,7 @@ module.exports = function (fastify, opts, next) {
}, },
}, },
}, },
name: { type: 'string' }, //name: { type: 'string' },
team: { type: 'string', default: null }, team: { type: 'string', default: null },
manager: { type: 'string', default: null }, manager: { type: 'string', default: null },
address1: { type: 'string', default: null }, address1: { type: 'string', default: null },

Loading…
Cancel
Save