Skip to content

Commit e106b61

Browse files
committed
hotfix broken webapi
1 parent 286acbb commit e106b61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/de/kittybot/kittybot/modules/WebModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public long getUserId(Context ctx){
187187
}
188188

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

201201
public long getTagId(Context ctx){
202-
var tagId = ctx.pathParam(":tagId");
202+
var tagId = ctx.pathParam("tagId");
203203
try{
204204
return Long.parseLong(tagId);
205205
}

0 commit comments

Comments
 (0)