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;
|
if (action === 0) continue;
|
||||||
|
|
||||||
Object.defineProperty(newActions, user, {
|
newActions[user] = { BanType: action };
|
||||||
value: {
|
logMap[user] = action;
|
||||||
BanType: action,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
Object.defineProperty(logMap, user, {
|
|
||||||
value: action,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
await insertLogs(logMap, context.params.id as string, context);
|
await insertLogs(logMap, context.params.id as string, context);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user