Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apigateway/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ spring:
routes:
- id: iot-service
order: -10
uri: lb://iot-service
uri: http://iot-service:8082
predicates:
- Path=/api/iot/**
- Path=/api/sensordata/**
filters:
- StripPrefix=0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ public PatientDTO updatePatient(Long Id, PatientDTO dto) {
p.setChronicConditions(dto.getChronicConditions());
if (dto.getEmergencyNotes() != null)
p.setEmergencyNotes(dto.getEmergencyNotes());
if (dto.getDeviceId() != null)
p.setDeviceId(dto.getDeviceId().isBlank() ? null : dto.getDeviceId());

Patient updatedPatient = patientrepo.save(p);

Expand Down
Loading