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) => { exports.getquotationofinstalleranduser = async (req, reply) => {
try { try {
const installationId = req.params.installationId; const surveyId = req.params.surveyId;
const customerId = req.body.customerId; const customerId = req.body.customerId;
// Find the specific tank // Find the specific tank
const result = await SensorQuotation.find({ const result = await SensorQuotation.find({
installationId: installationId, surveyId: surveyId,
customerId: customerId, customerId: customerId,
}); });

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

Loading…
Cancel
Save