diff --git a/src/controllers/storeController.js b/src/controllers/storeController.js index 1bc818ee..dc4001b0 100644 --- a/src/controllers/storeController.js +++ b/src/controllers/storeController.js @@ -536,6 +536,7 @@ exports.editStore = async (request, reply) => { description, startingPrice, password, + contactPersonPhone } = request.body; @@ -562,6 +563,7 @@ exports.editStore = async (request, reply) => { existingStore.fcmId = fcmId || existingStore.fcmId; existingStore.description = description || existingStore.description; existingStore.startingPrice = startingPrice || existingStore.startingPrice; + existingStore.contactPersonPhone = contactPersonPhone || existingStore.contactPersonPhone; if (profile) { diff --git a/src/routes/storeRoute.js b/src/routes/storeRoute.js index f2ac13b9..126b74b6 100644 --- a/src/routes/storeRoute.js +++ b/src/routes/storeRoute.js @@ -322,7 +322,7 @@ fastify.put('/api/editStore/:storeId', { fcmId: { type: "string" }, description: { type: "string" }, startingPrice: { type: "string" }, - password: { type: "string" }, + contactPersonPhone: { type: "string" }, }, required: ["phone"], }