Fix this one too

This commit is contained in:
2026-04-14 00:20:57 -04:00
parent f5e3e3cca6
commit 96d221be2a

View File

@@ -1,5 +1,5 @@
import { jsonError, jsonResponse } from "../../../common.js"; import { jsonError, jsonResponse } from "../../../common.js";
import { JsonObject } from "../../../../generated/prisma/internal/prismaNamespace.js"; import { type JsonObject } from "../../../../generated/prisma/internal/prismaNamespace.js";
export async function onRequestGet(context: RequestContext) { export async function onRequestGet(context: RequestContext) {
const types: { [k: string]: number[] } = { const types: { [k: string]: number[] } = {
@@ -53,7 +53,7 @@ export async function onRequestGet(context: RequestContext) {
}, },
}); });
if (item) delete (item.user as JsonObject).email; if (item) delete (item.user as JsonObject | null)?.email;
break; break;
default: default: