From 1123b86a47350161ed68ad54a540ba48ab101816 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:50:56 -0400 Subject: [PATCH] Fix object funny --- functions/api/reports/[id]/action.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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);