Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix user save data endpoint
  • Loading branch information
regalijan committed Apr 15, 2024
1 parent 66e1714 commit c3e60da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/api/game-bans/[user]/save-data.ts
Expand Up @@ -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);

Expand Down

0 comments on commit c3e60da

Please sign in to comment.