From 9c489537bc1c1877f66bd686bc2fbf53b2ae08f9 Mon Sep 17 00:00:00 2001 From: Naidu Date: Fri, 28 Jun 2024 15:40:30 +0530 Subject: [PATCH] name filed removed --- src/controllers/storeController.js | 4 ++-- src/models/store.js | 2 +- src/routes/storeRoute.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controllers/storeController.js b/src/controllers/storeController.js index 5680decb..423dc264 100644 --- a/src/controllers/storeController.js +++ b/src/controllers/storeController.js @@ -13,7 +13,7 @@ const supplierController = require("../controllers/supplierController") exports.installSignUp = async (request, reply) => { try { const { - name, + //name, phone, address, installationId, @@ -49,7 +49,7 @@ exports.installSignUp = async (request, reply) => { // Create a new install object with the hashed password and other details const install = new Install({ - name, + //name, phone, address, installationId, diff --git a/src/models/store.js b/src/models/store.js index b2be7adc..8c81f868 100644 --- a/src/models/store.js +++ b/src/models/store.js @@ -5,7 +5,7 @@ const ObjectId = Schema.Types.ObjectId; const installationschema = new mongoose.Schema({ - name: { type: String }, + // name: { type: String }, phone: { type: String, unique: true, trim: true }, address: String, installationId: { type: String }, diff --git a/src/routes/storeRoute.js b/src/routes/storeRoute.js index 04126c16..18af0a14 100644 --- a/src/routes/storeRoute.js +++ b/src/routes/storeRoute.js @@ -25,7 +25,7 @@ module.exports = function (fastify, opts, next) { }, }, }, - name: { type: 'string' }, + //name: { type: 'string' }, team: { type: 'string', default: null }, manager: { type: 'string', default: null }, address1: { type: 'string', default: null },