Skip to content

Commit

Permalink
hotfix broken webapi
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Dec 10, 2021
1 parent 286acbb commit e106b61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/kittybot/kittybot/modules/WebModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public long getUserId(Context ctx){
}

public Guild getGuild(Context ctx){
var guildId = ctx.pathParam(":guildId");
var guildId = ctx.pathParam("guildId");
if(guildId.isBlank() || !Utils.isSnowflake(guildId)){
throw new BadRequestResponse("Please provide a valid guild id");
}
Expand All @@ -199,7 +199,7 @@ public Guild getGuild(Context ctx){
}

public long getTagId(Context ctx){
var tagId = ctx.pathParam(":tagId");
var tagId = ctx.pathParam("tagId");
try{
return Long.parseLong(tagId);
}
Expand Down

0 comments on commit e106b61

Please sign in to comment.