Skip to content

Commit

Permalink
fix(CC-119): adjust patient appointment registry not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
luanavfg committed Apr 18, 2024
1 parent df65cd3 commit b1d2250
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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'],
);
}

Expand Down

0 comments on commit b1d2250

Please sign in to comment.