Skip to content

Commit

Permalink
Changes for build workflow test
Browse files Browse the repository at this point in the history
  • Loading branch information
CatalinMo committed Apr 18, 2024
1 parent 2b540e3 commit 0fd4201
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ public void createDescription(DescriptionRequestDto descriptionRequestDto) {

@Override
public void updateDescription(long descriptionId, DescriptionRequestDto descriptionRequestDto) {
Description description = descriptionRepository.findById(descriptionId).orElse(null);
Description existingDescription = descriptionRepository.findById(descriptionId).orElse(null);
if (description != null) {
description.setDetails(descriptionRequestDto.getDetails());
descriptionRepository.save(description);
existingDescription.setDetails(descriptionRequestDto.getDetails());
descriptionRepository.save(existingDescription);
}
}

Expand Down

0 comments on commit 0fd4201

Please sign in to comment.