Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
No that does not work
  • Loading branch information
regalijan committed Oct 26, 2023
1 parent 56370c0 commit 9e97137
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion functions/api/events.ts
@@ -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")) ?? "[]");
}

0 comments on commit 9e97137

Please sign in to comment.