Fix object funny
This commit is contained in:
parent
9c35fa4a0a
commit
1123b86a47
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user