EDIT STORE details chenages

master
Bhaskar 10 months ago
parent 6600524644
commit ecaec81a08

@ -536,6 +536,7 @@ exports.editStore = async (request, reply) => {
description, description,
startingPrice, startingPrice,
password, password,
contactPersonPhone
} = request.body; } = request.body;
@ -562,6 +563,7 @@ exports.editStore = async (request, reply) => {
existingStore.fcmId = fcmId || existingStore.fcmId; existingStore.fcmId = fcmId || existingStore.fcmId;
existingStore.description = description || existingStore.description; existingStore.description = description || existingStore.description;
existingStore.startingPrice = startingPrice || existingStore.startingPrice; existingStore.startingPrice = startingPrice || existingStore.startingPrice;
existingStore.contactPersonPhone = contactPersonPhone || existingStore.contactPersonPhone;
if (profile) { if (profile) {

@ -322,7 +322,7 @@ fastify.put('/api/editStore/:storeId', {
fcmId: { type: "string" }, fcmId: { type: "string" },
description: { type: "string" }, description: { type: "string" },
startingPrice: { type: "string" }, startingPrice: { type: "string" },
password: { type: "string" }, contactPersonPhone: { type: "string" },
}, },
required: ["phone"], required: ["phone"],
} }

Loading…
Cancel
Save