Compare commits
3 Commits
b671aefd6e
...
546842c4dd
| Author | SHA1 | Date | |
|---|---|---|---|
|
546842c4dd
|
|||
|
1f2a8770a1
|
|||
|
4b15c65092
|
@@ -268,6 +268,7 @@ export default function () {
|
||||
element: (
|
||||
<AppealCard
|
||||
{...(entry as AppealCardProps & { port?: MessagePort })}
|
||||
key={`appeal_${entry.id}`}
|
||||
port={messageChannel.current?.port2}
|
||||
/>
|
||||
),
|
||||
@@ -281,6 +282,7 @@ export default function () {
|
||||
element: (
|
||||
<GameAppealCard
|
||||
{...(entry as GameAppealProps & { port?: MessagePort })}
|
||||
key={`gma_${entry.id}`}
|
||||
port={messageChannel.current?.port2}
|
||||
/>
|
||||
),
|
||||
@@ -294,6 +296,7 @@ export default function () {
|
||||
element: (
|
||||
<InactivityNoticeCard
|
||||
{...(entry as InactivityNoticeProps & { port?: MessagePort })}
|
||||
key={`inactivity_${entry.id}`}
|
||||
port={messageChannel.current?.port2}
|
||||
/>
|
||||
),
|
||||
@@ -307,6 +310,7 @@ export default function () {
|
||||
element: (
|
||||
<ReportCard
|
||||
{...(entry as ReportCardProps & { port?: MessagePort })}
|
||||
key={`report_${entry.id}`}
|
||||
port={messageChannel.current?.port2}
|
||||
/>
|
||||
),
|
||||
|
||||
@@ -91,7 +91,7 @@ export default function (props: { isOpen: boolean; onClose: () => void }) {
|
||||
</Thead>
|
||||
<Tbody>
|
||||
{entries.map((entry) => (
|
||||
<Tr>
|
||||
<Tr key={`appealban_${entry.user}`}>
|
||||
<Td>{entry.user}</Td>
|
||||
<Td>{entry.created_by}</Td>
|
||||
<Td>{new Date(entry.created_at).toUTCString()}</Td>
|
||||
|
||||
@@ -17,7 +17,7 @@ export async function onRequestGet(context: RequestContext) {
|
||||
);
|
||||
|
||||
if (!robloxUserReq.ok) {
|
||||
console.log(await robloxUserReq.json());
|
||||
console.log(await robloxUserReq.text());
|
||||
return jsonError("Failed to resolve username", 500);
|
||||
}
|
||||
|
||||
|
||||
@@ -76,6 +76,11 @@ export async function onRequestGet(context: RequestContext): Promise<any> {
|
||||
SELECT *, (SELECT COUNT(*) FROM json_each(decisions)) AS decision_count FROM inactivity_notices WHERE created_at < datetime(${before} / 1000, 'unixepoch') AND decision_count ${showClosed ? raw("=") : raw("!=")} json_array_length(departments);`;
|
||||
|
||||
rows.map((r) => {
|
||||
// These come back as strings when using $queryRaw
|
||||
r.decisions = JSON.parse(r.decisions as string);
|
||||
r.departments = JSON.parse(r.departments as string);
|
||||
r.user = JSON.parse(r.user as string);
|
||||
|
||||
delete (r.user as JsonObject).email;
|
||||
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user