Remove unused path constant

This commit is contained in:
2026-03-31 03:26:00 -04:00
parent e3af1e4f37
commit b8e320fa01
3 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ export async function onRequestPost(context: RequestContext) {
if (!appeal) return jsonError("Appeal not found", 400); 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 = ?;") await context.env.D1.prepare("DELETE FROM game_appeals WHERE id = ?;")
.bind(context.params.id) .bind(context.params.id)

View File

@@ -31,7 +31,7 @@ export async function onRequestPost(context: RequestContext) {
) )
.run(); .run();
const { etag, path, value: banList } = await getBanList(context); const { etag, value: banList } = await getBanList(context);
delete banList[user]; delete banList[user];
await setBanList(context, banList, etag); await setBanList(context, banList, etag);

View File

@@ -78,7 +78,7 @@ export async function onRequestPost(context: RequestContext) {
await context.env.D1.batch(batchedQueries); 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); await setBanList(context, Object.assign(banList, newActions), etag);
} }