Move to V2 datastore apis
This commit is contained in:
@@ -78,15 +78,9 @@ export async function onRequestPost(context: RequestContext) {
|
||||
|
||||
await context.env.D1.batch(batchedQueries);
|
||||
|
||||
const banList = (await getBanList(context)) as {
|
||||
[k: string]: {
|
||||
BanType: number;
|
||||
hidden_from_leaderboards?: boolean;
|
||||
serverconfigurator_blacklist?: boolean;
|
||||
};
|
||||
};
|
||||
const { etag, path, value: banList } = await getBanList(context);
|
||||
|
||||
await setBanList(context, Object.assign(banList, newActions));
|
||||
await setBanList(context, Object.assign(banList, newActions), etag);
|
||||
}
|
||||
|
||||
const pushNotificationData: Record<string, string> | null =
|
||||
|
||||
Reference in New Issue
Block a user