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"; export Apointment, { schema } from "./model";
const router = new Router(); const router = new Router();
const { const { No, PatientName, Email, PhoneNo, Date, Time, Msg, Age } = schema.tree;
No,
PatientName,
docID,
Email,
PhoneNo,
Date,
Time,
depID,
Msg,
Age,
} = schema.tree;
/** /**
* @api {post} /apointments Create apointment * @api {post} /apointments Create apointment
@ -40,12 +29,10 @@ router.post(
body({ body({
No, No,
PatientName, PatientName,
docID,
Email, Email,
PhoneNo, PhoneNo,
Date, Date,
Time, Time,
depID,
Msg, Msg,
Age, Age,
}), }),
@ -94,12 +81,10 @@ router.put(
body({ body({
No, No,
PatientName, PatientName,
docID,
Email, Email,
PhoneNo, PhoneNo,
Date, Date,
Time, Time,
depID,
Msg, Msg,
Age, Age,
}), }),

View File

@ -51,14 +51,12 @@ apointmentSchema.methods = {
id: this.id, id: this.id,
No: this.No, No: this.No,
PatientName: this.PatientName, PatientName: this.PatientName,
docID: this.docID,
Email: this.Email, Email: this.Email,
PhoneNo: this.PhoneNo, PhoneNo: this.PhoneNo,
Date: this.Date, Date: this.Date,
Time: this.Time, Time: this.Time,
Msg: this.Msg, Msg: this.Msg,
Age: this.Age, Age: this.Age,
depID: this.depID,
createdAt: this.createdAt, createdAt: this.createdAt,
updatedAt: this.updatedAt, updatedAt: this.updatedAt,
}; };