docID and depID Removed

This commit is contained in:
Jyotirmoy Bandyopadhayaya 2020-10-28 22:24:26 +05:30
parent 8ae3f11003
commit 641f96c380
2 changed files with 1 additions and 18 deletions

View File

@ -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,
}),

View File

@ -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,
};