Send back appeal types in metadata response
This commit is contained in:
@ -3,8 +3,7 @@ import precheck from "./precheck.js";
|
||||
|
||||
export async function onRequestPost(context: RequestContext) {
|
||||
if (
|
||||
context.request.headers.get("rbx-auth") !==
|
||||
context.env.ROBLOX_APPEALS_TOKEN
|
||||
context.request.headers.get("rbx-auth") !== context.env.ROBLOX_APPEALS_TOKEN
|
||||
)
|
||||
return jsonError("Unauthorized", 401);
|
||||
|
||||
@ -16,7 +15,7 @@ export async function onRequestPost(context: RequestContext) {
|
||||
|
||||
if (precheckData.error) return jsonError(precheckData.error, 500);
|
||||
|
||||
const { can_appeal, reason } = precheckData;
|
||||
const { can_appeal, reason, types } = precheckData;
|
||||
|
||||
return jsonResponse(JSON.stringify({ can_appeal, reason }));
|
||||
return jsonResponse(JSON.stringify({ can_appeal, reason, types }));
|
||||
}
|
||||
|
Reference in New Issue
Block a user