Skip to content
Snippets Groups Projects
Commit ef5f9cd7 authored by roshan's avatar roshan
Browse files

api changes in create doctor and conflict resolved

parents 124d8f9d 26e3b715
No related branches found
No related tags found
1 merge request!31Changes in test cases
......@@ -149,7 +149,12 @@ export class HospitalService {
const { limit: take, offset: skip } = await this.pagination(page, limit);
const [hospitalsData, total] = await Promise.all([
this.prisma.hospitals.findMany({
where: { hfr_id: hospitalId },
where: {
OR: [
{ hfr_id: hospitalId },
{ hospital_no: hospitalId },
],
},
skip,
take,
include: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment