Fix user save data endpoint
This commit is contained in:
parent
66e17141f2
commit
c3e60da881
@ -2,7 +2,7 @@ import { jsonError, jsonResponse } from "../../../common.js";
|
|||||||
import { getSaveData } from "../../../roblox-open-cloud.js";
|
import { getSaveData } from "../../../roblox-open-cloud.js";
|
||||||
|
|
||||||
export async function onRequestGet(context: RequestContext) {
|
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);
|
if (isNaN(id)) return jsonError("ID must be a number", 400);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user