Don't double-stringify save data
This commit is contained in:
@ -7,7 +7,7 @@ export async function onRequestGet(context: RequestContext) {
|
||||
if (isNaN(id)) return jsonError("ID must be a number", 400);
|
||||
|
||||
try {
|
||||
return jsonResponse(JSON.stringify(await getSaveData(context, id)));
|
||||
return jsonResponse(await getSaveData(context, id));
|
||||
} catch {
|
||||
return jsonError("Request to Roblox failed", 500);
|
||||
}
|
||||
|
Reference in New Issue
Block a user