Fix user save data endpoint

This commit is contained in:
Regalijan 2024-04-15 16:21:57 -04:00
parent 66e17141f2
commit c3e60da881
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -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);