Fix this one too
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
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) {
|
||||
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;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user