docID and depID Removed
This commit is contained in:
parent
8ae3f11003
commit
641f96c380
|
@ -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,
|
||||
}),
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue