Skip to content

Commit

Permalink
fix: get linked patient bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ElrohirGT committed Oct 1, 2024
1 parent 3e5de70 commit 45b478a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ describe("Get linked patient integration tests", () => {
expect(response.status).toBe(200);

const { linkedPatientId } = response.data;
expect(linkedPatientId).toEqual(patientData.idPatient);
expect(linkedPatientId).toBeDefined();
expect(linkedPatientId).toEqual(patientData.patientId);
});

test("Get null for patient with no linked patient", async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const handler = async (event, context) => {
.build();
}

const linkedPatientId = dbResponse.rows[0].id_paciente;
const linkedPatientId = dbResponse.rows[0].id;
return responseBuilder
.setStatusCode(200)
.setBody({ linkedPatientId })
Expand Down

0 comments on commit 45b478a

Please sign in to comment.