Move to V2 datastore apis
This commit is contained in:
@@ -31,12 +31,10 @@ export async function onRequestPost(context: RequestContext) {
|
||||
)
|
||||
.run();
|
||||
|
||||
const banList = (await getBanList(context)) as {
|
||||
[k: string]: { BanType: number };
|
||||
};
|
||||
const { etag, path, value: banList } = await getBanList(context);
|
||||
|
||||
delete banList[user];
|
||||
await setBanList(context, banList);
|
||||
await setBanList(context, banList, etag);
|
||||
|
||||
return new Response(null, {
|
||||
status: 204,
|
||||
|
||||
Reference in New Issue
Block a user