diff --git a/src/main/java/com/example/cosmos_serversb/models/Groups.java b/src/main/java/com/example/cosmos_serversb/models/Groups.java index f97a025..5261857 100644 --- a/src/main/java/com/example/cosmos_serversb/models/Groups.java +++ b/src/main/java/com/example/cosmos_serversb/models/Groups.java @@ -217,15 +217,15 @@ // return testRequest; } - public static DeleteResult deleteRequest(String gId, String rId){ + public static String deleteRequest(String gId, String rId){ Session session = SessionManager.getInstance().getSession(); Request request = session.get(Request.class, rId); if(request != null) { session.get(Group.class, gId).updateRequestHash(request); session.delete(request); - return DeleteResult.SUCCESS; + return "SUCCESS"; } - return DeleteResult.FAILURE; + return "FAILURE"; } /*