Skip to content

Commit

Permalink
Close #7 #18
Browse files Browse the repository at this point in the history
  • Loading branch information
ZikBurns committed Nov 20, 2019
1 parent bdd1364 commit dfd4bdb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified build/web/WEB-INF/classes/services/RoomService.class
Binary file not shown.
2 changes: 1 addition & 1 deletion src/java/services/RoomService.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public Response deleteRoom(@PathParam("id") int id)

public Room deleteRoomDB(int id){
Room room=queryRoomwithid(id);
if((room!=null)&&(room.getRenter()==null)){
if(room!=null){
em.getTransaction().begin();
if(room.getRenter()!=null )
{
Expand Down

0 comments on commit dfd4bdb

Please sign in to comment.