diff --git a/src/main/java/cloudgene/mapred/server/controller/JobAdminController.java b/src/main/java/cloudgene/mapred/server/controller/JobAdminController.java index d64b0cb9..f00a2860 100644 --- a/src/main/java/cloudgene/mapred/server/controller/JobAdminController.java +++ b/src/main/java/cloudgene/mapred/server/controller/JobAdminController.java @@ -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); @@ -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; }