From b1d22504d1c0f72face924f9310f869193a6dedf Mon Sep 17 00:00:00 2001 From: luanavfg Date: Thu, 18 Apr 2024 09:28:58 -0300 Subject: [PATCH] fix(CC-119): adjust patient appointment registry not found error --- .../repositories/database-in-memory-repository.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/core-rest-api/src/app/core/domains/patient-appointment-registry/repositories/database-in-memory-repository.ts b/apps/core-rest-api/src/app/core/domains/patient-appointment-registry/repositories/database-in-memory-repository.ts index e826ebb..d565e9e 100644 --- a/apps/core-rest-api/src/app/core/domains/patient-appointment-registry/repositories/database-in-memory-repository.ts +++ b/apps/core-rest-api/src/app/core/domains/patient-appointment-registry/repositories/database-in-memory-repository.ts @@ -1,5 +1,5 @@ import { ConflictException } from '@nestjs/common'; -import { PATIENT_ERROR_MESSAGES } from '../../../../shared/errors/error-messages'; +import { PATIENT_APPOINTMENT_REGISTRY_ERROR_MESSAGES } from '../../../../shared/errors/error-messages'; import { PatientAppointmentRegistryEntity } from '../entities/registry/entity'; import { ICreatePatientAppointmentRegistry, @@ -77,7 +77,7 @@ export class InMemoryPatientAppointmentRegistryDatabaseRepository if (!patientAppointmentRegistry) { throw new ConflictException( - PATIENT_ERROR_MESSAGES['PATIENT_APPOINTMENT_REGISTRY_NOT_FOUND'] + PATIENT_APPOINTMENT_REGISTRY_ERROR_MESSAGES['REGISTRY_NOT_FOUND'], ); }