EDIT STORE details chenages

master
Bhaskar 10 months ago
parent 6600524644
commit ecaec81a08

@ -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) {

@ -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"],
}

Loading…
Cancel
Save