cancle order

master
Bhaskara Kishore 2 years ago
parent 5dcc261c20
commit a1aecd71c5

@ -625,9 +625,9 @@ exports.getAllOrderreject = async (req, reply) => {
const limit = parseInt(req.query.limit) || 100;
const page = parseInt(req.query.page) || 1;
const startindex = (page - 1) * limit;
const customerId = req.params.customerId
//const customerId = req.params.customerId
try {
await Tankerbooking.find({ customerId: customerId, orderStatus: ["rejected"]})
await Tankerbooking.find({ orderStatus: ["rejected"]})
.limit(limit)
.skip(startindex)
.exec()

@ -506,16 +506,16 @@ module.exports = function (fastify, opts, next) {
tags: ["Supplier-Order"],
description:"This is for Get All order cancelled",
summary: "This is for Get All order cancelled",
params: {
required: ["customerId"],
type: "object",
properties: {
customerId: {
type: "string",
description: "customerId",
},
},
},
// params: {
// required: ["customerId"],
// type: "object",
// properties: {
// customerId: {
// type: "string",
// description: "customerId",
// },
// },
// },
security: [
{

Loading…
Cancel
Save