varun 3 years ago
commit 305288679f

@ -21,11 +21,11 @@ const tankersSchema = new mongoose.Schema({
supplier_address: { type: String, default: null },
supplier_name : { type: String, default: null },
price: {
type: [String],
default: []
},
status: { type: String},
// price: {
// type: [String],
// default: []
// },
});

@ -53,7 +53,7 @@ module.exports = function (fastify, opts, next) {
},
},
capacity: { type: "string"},
price: {type : "string"},
// price: {type : "string"},
// status: {type: "string"}
@ -591,8 +591,8 @@ module.exports = function (fastify, opts, next) {
url: '/connection-status',
schema: {
tags: ["Supplier"],
description: "This is for Get Tank Data for status connected or not",
summary: "This is for to Get Tank Data for status connected or not",
description: "This is for Get Tankers Data for status connected or not",
summary: "This is for to Get Tankers Data for status connected or not",
querystring: {
type: 'object',
properties: {
@ -607,6 +607,7 @@ module.exports = function (fastify, opts, next) {
},
],
},
handler: tankersController.connectionStatus
});

Loading…
Cancel
Save