From 641f96c38038ce6b6d2496462b7da49dfee76849 Mon Sep 17 00:00:00 2001 From: Jyotirmoy Date: Wed, 28 Oct 2020 22:24:26 +0530 Subject: [PATCH] docID and depID Removed --- backend/src/api/apointment/index.js | 17 +---------------- backend/src/api/apointment/model.js | 2 -- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/backend/src/api/apointment/index.js b/backend/src/api/apointment/index.js index 6059fbe..5112270 100644 --- a/backend/src/api/apointment/index.js +++ b/backend/src/api/apointment/index.js @@ -6,18 +6,7 @@ import { schema } from "./model"; export Apointment, { schema } from "./model"; const router = new Router(); -const { - No, - PatientName, - docID, - Email, - PhoneNo, - Date, - Time, - depID, - Msg, - Age, -} = schema.tree; +const { No, PatientName, Email, PhoneNo, Date, Time, Msg, Age } = schema.tree; /** * @api {post} /apointments Create apointment @@ -40,12 +29,10 @@ router.post( body({ No, PatientName, - docID, Email, PhoneNo, Date, Time, - depID, Msg, Age, }), @@ -94,12 +81,10 @@ router.put( body({ No, PatientName, - docID, Email, PhoneNo, Date, Time, - depID, Msg, Age, }), diff --git a/backend/src/api/apointment/model.js b/backend/src/api/apointment/model.js index 0628aeb..4ce224d 100644 --- a/backend/src/api/apointment/model.js +++ b/backend/src/api/apointment/model.js @@ -51,14 +51,12 @@ apointmentSchema.methods = { id: this.id, No: this.No, PatientName: this.PatientName, - docID: this.docID, Email: this.Email, PhoneNo: this.PhoneNo, Date: this.Date, Time: this.Time, Msg: this.Msg, Age: this.Age, - depID: this.depID, createdAt: this.createdAt, updatedAt: this.updatedAt, };