diff --git a/functions/api/reports/[id]/action.ts b/functions/api/reports/[id]/action.ts index 8f5d21a..cbdec69 100644 --- a/functions/api/reports/[id]/action.ts +++ b/functions/api/reports/[id]/action.ts @@ -52,15 +52,8 @@ export async function onRequestPost(context: RequestContext) { if (action === 0) continue; - Object.defineProperty(newActions, user, { - value: { - BanType: action, - }, - }); - - Object.defineProperty(logMap, user, { - value: action, - }); + newActions[user] = { BanType: action }; + logMap[user] = action; } await insertLogs(logMap, context.params.id as string, context);