no message

This commit is contained in:
annabakouli 2017-12-12 16:00:01 +02:00
parent 62b3fc2185
commit c2c14f0f7a
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ public class Datasets {
Dataset d = datasetDao.read(dataset.getId());
d.setStatus(new Short("-1"));
dataset = datasetDao.update(dataset);
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body("{\"msg\":\"Could not soft delete dataset!\"");
return ResponseEntity.status(HttpStatus.OK).body("{\"msg\":\"Deleted dataset!\"");
} catch (Exception e) {
e.printStackTrace();
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body("{\"msg\":\"Could not soft delete dataset!\"");