Remove unused path constant
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user