No that does not work

This commit is contained in:
Regalijan 2023-10-26 11:05:17 -04:00
parent 56370c027a
commit 9e971375cd
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -1,3 +1,5 @@
import { jsonResponse } from "../common.js";
export async function onRequestGet(context: RequestContext) {
return (await context.env.DATA.get("game_updates", { type: "json" })) ?? [];
return jsonResponse((await context.env.DATA.get("game_updates")) ?? "[]");
}