Compare commits

..

3 Commits

Author SHA1 Message Date
546842c4dd These need to still be parsed
All checks were successful
Test, Build, Deploy / Test, Build, and Deploy (push) Successful in 58s
Test, Build, Deploy / Create Sentry Release (push) Successful in 6s
2026-04-12 01:34:32 -04:00
1f2a8770a1 Set keys on list elements 2026-04-12 01:30:18 -04:00
4b15c65092 Spit out as text in error console 2026-04-12 01:13:59 -04:00
4 changed files with 11 additions and 2 deletions

View File

@@ -268,6 +268,7 @@ export default function () {
element: ( element: (
<AppealCard <AppealCard
{...(entry as AppealCardProps & { port?: MessagePort })} {...(entry as AppealCardProps & { port?: MessagePort })}
key={`appeal_${entry.id}`}
port={messageChannel.current?.port2} port={messageChannel.current?.port2}
/> />
), ),
@@ -281,6 +282,7 @@ export default function () {
element: ( element: (
<GameAppealCard <GameAppealCard
{...(entry as GameAppealProps & { port?: MessagePort })} {...(entry as GameAppealProps & { port?: MessagePort })}
key={`gma_${entry.id}`}
port={messageChannel.current?.port2} port={messageChannel.current?.port2}
/> />
), ),
@@ -294,6 +296,7 @@ export default function () {
element: ( element: (
<InactivityNoticeCard <InactivityNoticeCard
{...(entry as InactivityNoticeProps & { port?: MessagePort })} {...(entry as InactivityNoticeProps & { port?: MessagePort })}
key={`inactivity_${entry.id}`}
port={messageChannel.current?.port2} port={messageChannel.current?.port2}
/> />
), ),
@@ -307,6 +310,7 @@ export default function () {
element: ( element: (
<ReportCard <ReportCard
{...(entry as ReportCardProps & { port?: MessagePort })} {...(entry as ReportCardProps & { port?: MessagePort })}
key={`report_${entry.id}`}
port={messageChannel.current?.port2} port={messageChannel.current?.port2}
/> />
), ),

View File

@@ -91,7 +91,7 @@ export default function (props: { isOpen: boolean; onClose: () => void }) {
</Thead> </Thead>
<Tbody> <Tbody>
{entries.map((entry) => ( {entries.map((entry) => (
<Tr> <Tr key={`appealban_${entry.user}`}>
<Td>{entry.user}</Td> <Td>{entry.user}</Td>
<Td>{entry.created_by}</Td> <Td>{entry.created_by}</Td>
<Td>{new Date(entry.created_at).toUTCString()}</Td> <Td>{new Date(entry.created_at).toUTCString()}</Td>

View File

@@ -17,7 +17,7 @@ export async function onRequestGet(context: RequestContext) {
); );
if (!robloxUserReq.ok) { if (!robloxUserReq.ok) {
console.log(await robloxUserReq.json()); console.log(await robloxUserReq.text());
return jsonError("Failed to resolve username", 500); return jsonError("Failed to resolve username", 500);
} }

View File

@@ -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);`; 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) => { 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; delete (r.user as JsonObject).email;
return r; return r;