From c6ada313381877255390eb61c7fbf07b11cf4e51 Mon Sep 17 00:00:00 2001 From: Wendy Date: Fri, 4 Oct 2024 14:40:33 -0700 Subject: [PATCH] Fixed format issues with Prettier --- .../inputs/HealthcareChoicesSearch.jsx | 5 ++++- server/routes/api/v1/physicians/list.js | 18 +++++++++--------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/client/src/pages/patients/inputs/HealthcareChoicesSearch.jsx b/client/src/pages/patients/inputs/HealthcareChoicesSearch.jsx index b7355595..e6d5699f 100644 --- a/client/src/pages/patients/inputs/HealthcareChoicesSearch.jsx +++ b/client/src/pages/patients/inputs/HealthcareChoicesSearch.jsx @@ -72,7 +72,10 @@ export default function HealthcareChoicesSearch({ form, choice, initialData }) { }; const handleSelectValue = (id, key) => { - const name = key.children.filter( el => el !== undefined).join('').trim(); + const name = key.children + .filter((el) => el !== undefined) + .join('') + .trim(); setValue({ id, name }); setSearch(name); form.setFieldValue(`healthcareChoices.${choice}Id`, id); diff --git a/server/routes/api/v1/physicians/list.js b/server/routes/api/v1/physicians/list.js index d1e7c138..0b0c513d 100644 --- a/server/routes/api/v1/physicians/list.js +++ b/server/routes/api/v1/physicians/list.js @@ -29,10 +29,10 @@ export default async function (fastify) { type: 'object', properties: { id: { type: 'string' }, - name: { type: 'string'} - } - } - } + name: { type: 'string' }, + }, + }, + }, }, }, }, @@ -89,11 +89,11 @@ export default async function (fastify) { orderBy: [{ firstName: 'asc' }, { lastName: 'asc' }], where: whereClase, include: { - hospitals: true - } - }) - return exists - }) + hospitals: true, + }, + }); + return exists; + }); reply.setPaginationHeaders(page, perPage, options.length).send(options); },