Skip to content

Commit

Permalink
Fixed admin purchase list to display game Ids properly
Browse files Browse the repository at this point in the history
  • Loading branch information
AleCoppola02 committed Jul 9, 2023
1 parent e87a564 commit 3a7b2ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/dao/PurchaseDAO.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public List<Purchase> retrievePurchases(String username, String minDate, String
purchase.setDatePurchased(rs.getString("datePurchased"));
purchase.setId(rs.getInt("id"));
purchase.setPrice(rs.getInt("price"));
purchase.setGameId(rs.getInt("id"));
purchase.setGameId(rs.getInt("gameId"));
//Build purchase

purchases.add(purchase);
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/admin/PurchasesList.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<table id=purchaseListTable>
<thead>
<tr>
<th>User Id</th>
<th>Purchase id</th>
<th>Username</th>
<th>Game Id</th>
<th>Price</th>
Expand Down

0 comments on commit 3a7b2ab

Please sign in to comment.