Skip to content

Commit

Permalink
Fix increase retire date message (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukfor authored Oct 21, 2024
1 parent 7be80ff commit 696958c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public MessageResponse archive(Authentication authentication, String id) {

@Get("/{id}/change-retire/{days}")
@Produces(MediaType.TEXT_PLAIN)
public MessageResponse increaseRetireDate(Authentication authentication, String id, Integer days) {
public String increaseRetireDate(Authentication authentication, String id, Integer days) {

User admin = authenticationService.getUserByAuthentication(authentication);

Expand All @@ -129,7 +129,7 @@ public MessageResponse increaseRetireDate(Authentication authentication, String
log.info(String.format("Job: Extended retire date for job %s (by ADMIN user ID %s - email %s)", job.getId(),
admin.getId(), admin.getMail()));

return MessageResponse.success(message);
return message;

}

Expand Down

0 comments on commit 696958c

Please sign in to comment.