Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix object funny
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 9c35fa4 commit 1123b86
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions functions/api/reports/[id]/action.ts
Expand Up @@ -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);
Expand Down

0 comments on commit 1123b86

Please sign in to comment.