price convert to array

master
Bhaskara Kishore 3 years ago
parent bac957e25f
commit 616b883824

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

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

Loading…
Cancel
Save