MissClick argument

This commit is contained in:
jeffcheasey88 2023-04-12 10:22:59 +02:00
parent e300d913cc
commit 1007ac87da

View file

@ -45,7 +45,7 @@ public class PuzzleResponse implements Response {
//saveSourceCode(received, databaseRepo.getPlayer(user.getId()));
JSONObject responseJSON = new JSONObject();
if(this.databaseRepo.getScore(user.getId(), 0) >= received.getPuzzleId()){
if(this.databaseRepo.getScore(user.getId(), received.getPuzzleId()) >= 0){
HttpUtil.responseHeaders(writer, 403, "Access-Control-Allow-Origin: *");
return;
}