Skip to content

Commit

Permalink
fix: update url for logo upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Indah Juliani committed Mar 21, 2024
1 parent 3946f8c commit 618c89e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ public ResponseEntity<?> toDTOParametab(
try {
String userId = decodeJwt(authorizationHeader);

Map<String, Structure> getStructs = this.structureService.retrieveAllStructures();
Person person = userInfoService.getPersonDetails(userId);
Map<String, Structure> getStructs = this.structureService.retrieveAllStructures();
DTOPerson dto = person2dtoPersonImpl.toDTOParamEtab(person, getStructs);
return new ResponseEntity<>(dto, HttpStatus.OK);
} catch (HandledException ex) {
Expand Down Expand Up @@ -266,6 +266,7 @@ public ResponseEntity<?> uploadFile(
// Parse the detailsJson string back to DTO
DTOStructure dto = new Gson().fromJson(detailsJson, DTOStructure.class);

oldUrl = calculOldImageUrlPath(dto);
newUrl = calculNewImageUrlPath(dto, oldUrl);
String pathName = newUrl.getPathName();
String getNewURL = newUrl.getUrl();
Expand Down

0 comments on commit 618c89e

Please sign in to comment.