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 },