From 616b883824a6a4500d876c9600ce522db134fccc Mon Sep 17 00:00:00 2001 From: Bhaskara Kishore Date: Fri, 24 Mar 2023 15:44:47 +0530 Subject: [PATCH] price convert to array --- src/models/tankers.js | 10 +++++----- src/routes/tankersRoute.js | 7 ++++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/models/tankers.js b/src/models/tankers.js index 81e8e02b..af9dfe42 100644 --- a/src/models/tankers.js +++ b/src/models/tankers.js @@ -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: [] + // }, + }); diff --git a/src/routes/tankersRoute.js b/src/routes/tankersRoute.js index aea3b9f2..39abb553 100644 --- a/src/routes/tankersRoute.js +++ b/src/routes/tankersRoute.js @@ -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 });