generated from moevm/nsql-clean-tempate
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from moevm/link-patient-api
Linked patients' front and back
- Loading branch information
Showing
7 changed files
with
54 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// @ts-ignore | ||
import express from "express"; | ||
import { doctorsService } from "../services/DoctorsService"; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,7 @@ class DataInitializer { | |
const doctorId = new Types.ObjectId(String(doctorUser?._id)) | ||
|
||
const testData: DoctorDto[] = [ | ||
{ _id: doctorId, name: "Ашыр", surname: "Мыратгилдиев", email: "[email protected]", contact: "123456789", experience: "5 years" }, | ||
{ _id: doctorId, name: "Ашыр", surname: "Мыратгелдиев", email: "[email protected]", contact: "123456789", experience: "5 years" }, | ||
]; | ||
|
||
await DoctorMongoCollection.insertMany(testData); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
|
||
export enum Endpoints { | ||
LOGIN = "login", | ||
GET_DOCTOR_BY_ID = "doctors" | ||
GET_DOCTOR_BY_ID = "doctors", | ||
GET_PATIENTS = "patients" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters