From c3e60da881f34e466e748f928059e7b99213a363 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Mon, 15 Apr 2024 16:21:57 -0400 Subject: [PATCH] Fix user save data endpoint --- functions/api/game-bans/[user]/save-data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/api/game-bans/[user]/save-data.ts b/functions/api/game-bans/[user]/save-data.ts index 07af89a..789031a 100644 --- a/functions/api/game-bans/[user]/save-data.ts +++ b/functions/api/game-bans/[user]/save-data.ts @@ -2,7 +2,7 @@ import { jsonError, jsonResponse } from "../../../common.js"; import { getSaveData } from "../../../roblox-open-cloud.js"; export async function onRequestGet(context: RequestContext) { - const id = parseInt(context.params.id as string); + const id = parseInt(context.params.user as string); if (isNaN(id)) return jsonError("ID must be a number", 400);