diff --git a/functions/api/game-appeals/[id]/accept.ts b/functions/api/game-appeals/[id]/accept.ts index fa40a24..05be642 100644 --- a/functions/api/game-appeals/[id]/accept.ts +++ b/functions/api/game-appeals/[id]/accept.ts @@ -15,7 +15,7 @@ export async function onRequestPost(context: RequestContext) { if (!appeal) return jsonError("Appeal not found", 400); - const { etag, path, value: banList } = await getBanList(context); + const { etag, value: banList } = await getBanList(context); await context.env.D1.prepare("DELETE FROM game_appeals WHERE id = ?;") .bind(context.params.id) diff --git a/functions/api/game-bans/[user]/revoke.ts b/functions/api/game-bans/[user]/revoke.ts index d13cece..40c305e 100644 --- a/functions/api/game-bans/[user]/revoke.ts +++ b/functions/api/game-bans/[user]/revoke.ts @@ -31,7 +31,7 @@ export async function onRequestPost(context: RequestContext) { ) .run(); - const { etag, path, value: banList } = await getBanList(context); + const { etag, value: banList } = await getBanList(context); delete banList[user]; await setBanList(context, banList, etag); diff --git a/functions/api/reports/[id]/action.ts b/functions/api/reports/[id]/action.ts index 9c7173e..f0a12c9 100644 --- a/functions/api/reports/[id]/action.ts +++ b/functions/api/reports/[id]/action.ts @@ -78,7 +78,7 @@ export async function onRequestPost(context: RequestContext) { await context.env.D1.batch(batchedQueries); - const { etag, path, value: banList } = await getBanList(context); + const { etag, value: banList } = await getBanList(context); await setBanList(context, Object.assign(banList, newActions), etag); }