Fix object funny

This commit is contained in:
regalijan 2023-10-19 16:50:56 -04:00
parent 9c35fa4a0a
commit 1123b86a47
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -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);