Skip to content

Commit

Permalink
Fix open modreq limit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dumbo52 committed Jun 28, 2015
1 parent 0622173 commit 7f117b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nu/nerd/modreq/database/RequestTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public List<Request> getMissedClosedRequests(UUID uuid) {

public int getNumRequestFromUser(UUID uuid) {
int retVal = 0;
Query<Request> query = plugin.getDatabase().find(Request.class).where().ieq("playerName", uuid.toString()).in("status", RequestStatus.OPEN).query();
Query<Request> query = plugin.getDatabase().find(Request.class).where().ieq("playerUUID", uuid.toString()).in("status", RequestStatus.OPEN).query();

if (query != null) {
retVal = query.findRowCount();
Expand Down

0 comments on commit 7f117b3

Please sign in to comment.