diff --git a/functions/api/reports/[id]/action.ts b/functions/api/reports/[id]/action.ts index 1497f72..e40a776 100644 --- a/functions/api/reports/[id]/action.ts +++ b/functions/api/reports/[id]/action.ts @@ -69,10 +69,10 @@ export async function onRequestPost(context: RequestContext) { // If not a ban action if (v === 1) { - newActions[user].hidden_from_leaderboards = true; + newActions[k].hidden_from_leaderboards = true; } else if (v === 3) { - newActions[user].serverconfigurator_blacklist = true; - newActions[user].BanType = 1; + newActions[k].serverconfigurator_blacklist = true; + newActions[k].BanType = 1; } }