changes in get quotations of particular user

master^2
Varun 7 months ago
parent e4e94f53d3
commit 703197fd66

@ -1923,12 +1923,12 @@ exports.addToCartService = async (req, reply) => {
exports.getquotationofinstalleranduser = async (req, reply) => {
try {
const installationId = req.params.installationId;
const surveyId = req.params.surveyId;
const customerId = req.body.customerId;
// Find the specific tank
const result = await SensorQuotation.find({
installationId: installationId,
surveyId: surveyId,
customerId: customerId,
});

@ -1494,18 +1494,18 @@ fastify.post("/api/editQuotationForSensor/:quatationId", {
handler: storeController.editQuotationForSensor,
});
fastify.post("/api/getquotationofinstalleranduser/:installationId", {
fastify.post("/api/getquotationofinstalleranduser/:surveyId", {
schema: {
tags: ["Install"],
description: "This is to Get Quotations for installer and particular user",
summary: "This is to Get Quotations for installer and particular user",
description: "This is to Get Quotations for survey and particular user",
summary: "This is to Get Quotations for survey and particular user",
params: {
required: ["installationId"],
required: ["surveyId"],
type: "object",
properties: {
installationId: {
surveyId: {
type: "string",
description: "installationId",
description: "surveyId",
},
},
},

Loading…
Cancel
Save